2020-03-15 01:54 AM
Hi everybody ,
does anyone have source code for writing data in SD card?
I am using STM32F103C8Tx
thanks alot
2020-03-15 04:45 AM
Chan's FatFs is used quite often. If you are using STM32CubeIDE, you can add it as a third-party middleware. Examples come with the firmware packages.
If you are an expert, you can start at register level using SD and FAT specification documents :face_with_tears_of_joy:.
2020-04-25 03:15 PM
> If you are an expert, you can start at register level using SD and FAT specification documents
This is a misleading sarcasm wrongly presenting the choice as a binary - all or nothing. In real life one can use decent software libraries and write the code by themselves for the missing parts. For networking it means using lwIP, but writing your own Ethernet driver, because ST's one is absolute crap. I have no experience with FatFS and SD, but most likely the situation is the same...
2020-04-25 06:54 PM
The STM32F103C8 doesn't have SDIO so would need SPI
See the adafruit shield driver and NUCLEO BSP supporting SD Cards via SPI
Very old STM32 part, surely better choices.