Getting a "Card not supported" error when using MicroSD with MK22FN1M0VLL12

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

Getting a "Card not supported" error when using MicroSD with MK22FN1M0VLL12

790 Views
tmd1426
Contributor I

Hey there,

I am getting the kStatus_SDMMC_CardNotSupport error when trying to initialize a microSD card on the board we have built that is using the MK22FN1M0VLL12 MCU.

I'll paste the relevant code below so hopefully someone can assist with the issue:

Screenshot - 041018 - 12_18_32.png

The SD_Init function is where it fails.

Untitled.png

SD_SendApplicationCmd is then where it fails next.

Screenshot - 041018 - 12_27_19.png

Finally, it returns at the if statement there returning kStatus_SDMMC_CardNotSupport.

Can anyone provide any solutions? Thank you for your time.

Labels (1)
Tags (2)
0 Kudos
3 Replies

598 Views
tmd1426
Contributor I

Hello again,

It's been awhile and I'd like to check and see if there are any other responses from NXP.

0 Kudos

598 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Thanh Dang 

Before you tried with your own board, did you manage to run the example code in our evaluation board? TWR-K21? this should help to discards any hardware problem. Also, what SD memory are you using? this issue only happened with this memory or have you tried different kinds of memories?

The Card not support status could happen when your clocks are not correct and the card doesn't respond as it should.

Best regards

Jorge Alcala

0 Kudos

598 Views
tmd1426
Contributor I

Hi Jorge,

Thank you. We tried the code on the tower board and received the same error. We are using a MicroSD which we have used with our eval code and it worked successfully. The problem comes when trying to port that eval code over to our production board which is what was posted above.

We have checked the clocks, we are running the bus clock at 374491.

It appears we are getting all zeros back for an R1 response above.

0 Kudos