cancel
Showing results for 
Search instead for 
Did you mean: 

SDMMC Init fails with no SD Card inserted - Card Detect Issue

Chris Jameson-Groves
Associate II
Posted on July 05, 2018 at 12:44

I have used CubeMX (version 4.26.0) to generate my project for an STM32F746ZET (on a custom board) and as part of that I have enabled SDMMC. When I run my project the generated function MX_SDMMC1_SD_Init fail with a timeout when there is no SD card inserted (if a card is inserted the init works correctly).

I wasn't expecting this to fail as surely is shouldn't be mandatory for an SD card to be fitted, this will be user fitted if required.

I believe our custom hardware is correctly setting the detect line based on whether the card is inserted or not. So my guess is that I need to configure something in CubeMX to use the card detect pin, is this correct? If so what do I need to do?

Thanks.

#cubemx-4.26 #card-detect #sdmmc #sd-detect
0 REPLIES 0