cancel
Showing results for 
Search instead for 
Did you mean: 

How to interface SD card with Nucleo-H503

Shubham08
Associate II

Hii, I have been trying to interface Nucleo-H503 with SD card adapter which has SPI pins to interface, in stm32cubeide i selected SPI1 and FileX in the middleware. But unable to get how to write code for it for creating file and saving Helloworld in the file created in SD card.

2 REPLIES 2
STTwo-32
ST Employee

Hello @Shubham08 

I suggest you follow this wiki that should be really helpful for you.

Best Regards.

STTwo-32

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.

Shubham08
Associate II

Sir, i have gone through the Wiki and also gone through the chapter link in the Github but didn't get solution. That is I have 32GB memory card normally available in market, i have microsd card module which have SPI interface, and Nucleo-H503 board.

In the STM32CubeIDE, there is no option of SDIO and SDMMC so I have selected SPI interface and in the middleware there was no FATS instead of that there was FileX and ThreadX . I tried to get to know how to use FileX, for datalogging using microsd card as in the github and wiki there the syntax and method for SRAM is given. Means i am not getting about the folder stucture where to add the appropriate coding part so that i can do the datalogging using microsdcard using FileX as it is new to me. That is i need the help what lines of code to be added in main.c or fileX for getting started with datalogging usign microSD card.

Sorry for the basic question but i am not getting about how to implement it.