2024-04-10 04:35 AM - last edited on 2024-04-10 04:56 AM by SofLit
Hello,
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.
2024-04-10 04:52 AM - edited 2024-04-10 04:53 AM
Hello,
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.
2024-04-10 05:41 AM
Don't write or format until.you 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
2024-04-15 02:38 AM
Yes, that was the issue. You need to reconfigure and include the correct library.
You can find it at this link: https://github.com/STMicroelectronics/STM32CubeF1/tree/master?tab=readme-ov-file
Simply clone the project using Git, then execute the corresponding .cproject file for the STM3210E-EVAL project. After that, the program should work correctly.