AnsweredAssumed Answered

How to check from firmware whether SD card inserted in slot ?

Question asked by mischuk.vadim on Jul 31, 2017
Latest reply on Aug 1, 2017 by Clive One

Hi, engineers. I am currently working on project, containing SD card. My HW is custom chinese board with STM23f407VET6 mounted and microSD slot connected to SDIO (proper pullup resistors seem to be in place). I made some auto-generated project skeleton (necessary hal and ll drivers, fatfs) with cubeMX, but I can't figure out from the HAL docs, how to perform software check, whether card is inserted into holder. Moreover, I don't see any clear examples from cubeF4 package, which would give me clear answer. Experiments on hardware still gave me no anser - HAL_SD_InitCard() returns HAL_OK without any card inserted in slot, wth? Will appreciate, if someone explains me where I messed up.