Not applicable
May 20, 2013
05:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 20, 2013
05:42 AM
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
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
- Tags:
- IFX
1 Reply
Sep 10, 2019
08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 10, 2019
08:29 AM
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 put
after DAVE_Init(), so that a code generation doesn't remove it
@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);
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