2018-07-05 03:44 AM
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