AnsweredAssumed Answered

fsl_sdhc_driver Stuck at SDHC_HAL_GetCurState()

Question asked by Audi McAvoy on Aug 3, 2015
Latest reply on Aug 13, 2015 by Audi McAvoy

I used Processor Expert in KDS 3.0.0 with KSDK 1.2.0 to create a project for the FRDM-K64F board.  I added MQX Standard (I intend to use MFS later), one task, and an fsl_sdcard component.  PEx has no errors, and appears to generate its code with no problems.

 

The one task simply prints a string to the debug console, delays a little bit then repeats.

 

When I debug the program, it will sometimes print the string; but, most often it will hang in the fsl_sdhc_driver. . .

 

/* Wait until last time sdhc send operation complete */

while(!SDHC_HAL_GetCurState(g_sdhcBase[instance], kSdhcHalGetDataLine0Level)){}

 

I do have a known good SD card inserted.

 

Do I have something configured wrong?  Project attached.

- Audi

Original Attachment has been moved to: transflash_drive.zip

Outcomes