cancel
Showing results for 
Search instead for 
Did you mean: 

how to save data into SD card

Rao
Associate

Hi,

I want to save the data in microSD memory card(for e.g. 4GB) as a file using STM32H573 discovery kit. And gone through with internet search and got some information.  But unable to get the exact idea to how to start with or done it. Found one connector CN5 on the board for SD card. In order to get the above said what are the prerequisties need to be done and what need to be selected in IOC file . Can anyone tell a step wise procedure for this or give an example code would be a great help. Thanks in advance.

 

3 REPLIES 3
T_Hamdi
ST Employee

Hello @Rao 

You can refer to the application available in the STM32CubeH5 package, which demonstrates how to use the microSD card on the STM32H573 Discovery kit. The example uses the FileX middleware and is a complete, ready-to-run project.

Here is the link to the example: STM32CubeH5 - Fx_uSD_File_Edit

This project shows how to initialize the SD card, mount the filesystem, and perform file operations such as creating, reading, and writing files on the microSD card connected via the CN5 connector.

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.
Hamdi Teyeb
AScha.3
Super User
mƎALLEm
ST Employee

Hello,

This is an example using FileX (Azure RTOS) that runs on STM32H573-DK board: Fx_uSD_File_Edit 

Please read the readme.md file on how it works.

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.