AnsweredAssumed Answered

disk_initialize(SD) hangs when using MQX

Question asked by Barry McNamara on Aug 16, 2016
Latest reply on Aug 19, 2016 by Barry McNamara

I have a project which reads data from an SD card. It was written using bare metal and works fine. I would now like to transition the project to use MQX.

 

However, once I add "FSL_RTOS_MQX" to my defines, the disk_initialize(SD) function hangs.

I have not changed anything besides adding that define and including the MQX files in the SDK needed to compile the project.

 

I have used the debugger and traced the hanging to the OSA_SemaWait call in fsl_sdhc_driver.c, which I have determined is implemented slightly differently for MQX than it is for bare metal. I, however, cannot determine why the function is hanging.

 

Can anybody point me in the right direction to fix this?

 

Thanks

Outcomes