AnsweredAssumed Answered

The SD card question of KSDK_1.3.0 in the K64

Question asked by Robin Zou on Feb 4, 2016
Latest reply on Feb 9, 2016 by isaacavila

The library KSDK_1.3.0\lib\ksdk_platform_lib\iar\K64F12 is used in my application.

 

My source code is written accordding to the example.Please re

C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\driver_examples\sdhc_sdcard\iar.

 

Because the micro SD card is used in my product. The hardware is a little different from the twrk64120m.

 

The hardware in my product.

 

The hardware in the twrk64120m.

 

The micro SD HC Kingston 32GB(the type:SDC 10/32GB 31497-005.A00LF)  is used in my product.

 

I try to access the SD card in the source code.

When I debug in the source code,

The error happens in the function

“SDCARD_DRV_SwitchHighspeed(card)——>

SDCARD_DRV_Switch(card,kSdSwitchSet, 0, 1, response);”

 

The function “SDCARD_DRV_Switch” is always failed.

 

But the other micro SD HC card 4GB(the type:4/4GB) works normally in my source code.

 

Can you tell me what is the reason??

Original Attachment has been moved to: The-SD-source-code.zip

Outcomes