cancel
Showing results for 
Search instead for 
Did you mean: 

microSD is not working STM32H7B3I-DK with TouchGFX

steve_cha
Associate

Hi everyone.

I'm using STM32H7B3I-DK.

I want to save configuration to microSD or load configuration from microSD via user action on UI.

In this regard, the ToughGFX UI side has been checked, but the microSD side is not working.

Please check my configuration and action, let me know what is need to work.

I configured SDMMC1, FATFS on STM32CubeIDE as follow.

for SDMMC1

steve_cha_0-1702436197609.pngsteve_cha_1-1702436210142.pngsteve_cha_2-1702436232222.pngsteve_cha_3-1702436242690.pngb

clock for SDMMC

steve_cha_4-1702436351208.png

for FATFS

steve_cha_6-1702436455367.pngsteve_cha_7-1702436466785.png

 

Initialize code in Main() function 

steve_cha_8-1702436802958.png

After starting FreeRTOS scheduler, only one task of FreeRTOS call this function.

Always i meet the error on f_open() function. The error code on f_open() is 1 or 13.

steve_cha_10-1702437157235.pngsteve_cha_11-1702437295611.png

Please let me know what have to do.

Do I need to set up MDMA for SDMMC1 ?

 

Steve.cha

1 REPLY 1
VicK
Associate

@steve_cha did you find a solution?  I am also struggling with the uSD card on this board when setting it up using CubeMX in a similar configuration.  Not sure why there aren't CubeMX examples associated with this eval board - it would certainly be helpful!