SDMMC004 without card detect signal

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,

If "Card Detection Signal" SDCD is unchecked on the UIEditor then the code seems to still look for a signal on P1.10.

I have added:

SET_BIT( SDMMC->HOST_CTRL,SDMMC_HOST_CTRL_CARD_DET_SIGNAL_DETECT_Pos );

to SDMMC004_HostControllerInit(), I'm not sure if this is the correct/best place, and it now seems OK.

Kind regards

Andy
0 Likes
1 Reply
User9897
Level 2
Level 2
I'm using FATFS App which uses SDMMC_BLOCK App and this behavior cost me a few hours…

@Infineon: can you please fix that, so that when no card detection is used, the bits are set by the app.

I'm not sure if this is the correct/best place, and it now seems OK.

I put
SET_BIT(SDMMC->HOST_CTRL, SDMMC_HOST_CTRL_CARD_DET_SIGNAL_DETECT_Pos);
SET_BIT(SDMMC->HOST_CTRL, SDMMC_HOST_CTRL_CARD_DETECT_TEST_LEVEL_Pos);


after DAVE_Init(), so that a code generation doesn't remove it
0 Likes