Skip to main content
Graduate II
May 4, 2023
Question

SPI SD Card Library

  • May 4, 2023
  • 0 replies
  • 1750 views

Hi,

I followed this tutorial to have made FatFs library work on my STM32 F411 PCB board with SPI interface.

Basically I need to store 1000+ floating point values in SD card and read them back.

I have no problem in writing; but I cannot read all the records back.

I put each value in one line, ending with "\n" and use f_gets to read line by line.

After reading 900+ line, I have Assertion failed error.

I wonder if STM has any sample code for us to follow.

    This topic has been closed for replies.