SD card code is not working in Class 4 SD card

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SD card code is not working in Class 4 SD card

821 次查看
akhil__
Contributor II

MCU - RT1170 custom board

SDK - 2.14


The SD card code works fine with a Class 6 SD card, but it doesn't work with a Class 4 SD card. Are there any configuration settings I might be missing?

@kerryzhou 

@SDCARD 

@SDcardreader @i_MX51EVKSDCard 

Thanks 

Akhil

标记 (2)
0 项奖励
回复
5 回复数

769 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @akhil__ ,

  Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

 I think, it may related to your used class 4 SD card, as my side, all are class 4 sd card:

kerryzhou_1-1720493194317.png

 

 

You also need to do the FAT32 format at first:

kerryzhou_0-1720493163204.png

Then I run the SDK2.15.0 for RT1170-EVK board:

kerryzhou_2-1720493231571.png

 

If you use the NXP MIMXRT1170-EVK board, you also need to solder R136.

This is my test result:

kerryzhou_3-1720493271903.png

kerryzhou_0-1720493447762.png

 

 

You can see, my class 4 SD card is working OK.

Maybe you also can find one sandisk micro sdhc class 4 to test it.

Wish it helps you!

if you still have question about it, please kindly let me know.

If your question is solved, please help me to mark the correct answer, just to close this case, thanks.

Any new issues, welcome to create the new case.

Best Regards,

kerry

 

 

 

 

0 项奖励
回复

763 次查看
akhil__
Contributor II

Thanks for the reply 

@kerryzhou 

 

I am using an RT 1170 custom board. There is no card detect pin.

I have tried with two SD cards (formatted as FAT32 as you mentioned), but the process gets stuck in the function mentioned below.

akhil___0-1720508393313.png

 

 

akhil___1-1720508422539.png

 

 

akhil___2-1720508590349.png

Stuck in function SD_SendInterfaceCondition as mentioned below

akhil___4-1720509808634.png

 

However, it is working fine with the Samsung Class 6 SD card.

akhil___3-1720509125480.png

 

akhil___5-1720509997732.png

 

Thanks 

akhil

 

 

0 项奖励
回复

750 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @akhil__ ,

 Do you have the NXP MIMXRT1170-EVK board or not?

You can try the NXP RT1170-EVK board, at least, this works on my side with class 4, so I want you also test it with NXP board, just to check, whether it is also related to your customer board or not.

When you test the NXP board, please connect the card detection pin resistor

kerryzhou_0-1720517114592.png

 

 

Best Regards,

kerry

0 项奖励
回复

741 次查看
akhil__
Contributor II

Thanks for the fast reply 

@kerryzhou 

Since we don't have the RT 1170 EVK board, I am sharing the schematics of our custom board.

akhil___0-1720520108510.png

 

Do any software changes need to be made because our connector dont have the card detection feature?

 

When I created a custom project, it didn't get stuck, but it is showing an assert error like this:

ASSERT ERROR " card->usrParam.cd != NULL ": file "fsl_sd.c" Line "2129" function name "SD_HostInit"

akhil___1-1720520281992.png



Am I missing any settings? 

Thanks 

akhil

 

标记 (2)
0 项奖励
回复

733 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @akhil__ 

  You can comment the data, and the card detect data, then test it again, whether you can pass it or not?

  As I also use sandisc class 4, it works on my side, I have a lot of class 4 SD card, that works OK.

 

Best Regards,

Kerry

0 项奖励
回复