SDK 2.7.0 fsl_sd.c SD_CardInit incorrect condition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDK 2.7.0 fsl_sd.c SD_CardInit incorrect condition

726 Views
tomasvavra
Contributor I
    /* probe bus voltage*/
    if (SD_ProbeBusVoltage(card) == kStatus_SDMMC_SwitchVoltageFail)
    {
        return kStatus_SDMMC_SwitchVoltageFail;
    }

This code ignores other errors from SD_ProbeBusVoltage than kStatus_SDMMC_SwitchVoltageFail and ties to continue. I see these for some SD card.

Tags (2)
0 Kudos
3 Replies

645 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Tomas Vavra

Please let me know your chip part number? I will check. Thanks!

Have a nice day,

Jun Zhang

0 Kudos

645 Views
tomasvavra
Contributor I

Hello ZhangJennie, sorry, my mistake. It is LPC54618 on LPCXpresso54618.

0 Kudos

645 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Thanks, I will suggest it to SDK development team today.

As the SDK team member is probably affected by new coronavirus, the response may be not that fast.

Please add the other error statement to your code if it's necessary for the moment.

Appreciate your understanding.

Have a nice day,

Jun Zhang

0 Kudos