2019-04-08 04:29 AM
I have STM32F103C8T6 and 16GB SD Card
I want to read/write files on SD card using SPI communication but not know where to start.
I am working with SD card first time.
Please anybody help me with this.
I am using STM32CubeMX and TrueSTUDIO
2019-04-08 05:35 AM
The nucleo boards have an SPI example using a driver in the AdaFruit shield code.
2019-04-08 05:46 AM
Can I make .txt file on SD card using this example??
2019-04-08 05:53 AM
Can you make a text file on a PC with fopen, fwrite, fclose, etc? FATFS provides similar interfacing.
The code talks to the SD Card
STM32Cube_FW_F1_Vx.y.z\Drivers\BSP\Adafruit_Shield\stm32_adafruit_sd.c
There are SPI drivers in the board file
STM32Cube_FW_F1_Vx.y.z\Drivers\BSP\STM32F1xx_Nucleo\stm32f1xx_nucleo.c
Look under the Nucleo examples for a FATFS one.
2019-04-08 05:55 AM
Yes I can make text file using C on PC