Showing results for 
Search instead for 
Did you mean: 




I am using the STM3210E-EVLA board. I want to create files on an SD card. While consulting the documentation for the STM3210E, I noticed that the size of the SD card is 128 Mbytes, whereas I am using an 8-GbytesSD card. I have written a simple code (below), but it does not display anything and does not work correctly (I have properly included the FATFS libraries). I am wondering if the large size of the SD card I am using compared to the one supported by the STM32 could be causing the issue.

Thank u.



ST Employee


As you're already using STM3210E-EVAL board, did you already try this native example?

In my opinion, you need to validate your SD card before writing your own code.


To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Don't write or format are sure the reading works.

The board can use SDHC and SDXC but is old enough thar 128MB was quite large at the time.

FATFS shipped by ST for many years is capable of 100's of GB, Microsoft would prefer EXFAT for cards of 64GB and above.

Cards should come suitably formatted

Check on the PC

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Yes, that was the issue. You need to reconfigure and include the correct library.

You can find it at this link:

Simply clone the project using Git, then execute the corresponding .cproject file for the STM3210E-EVAL project. After that, the program should work correctly.