AnsweredAssumed Answered

esdhc issues

Question asked by LUKE BIGHAM on Oct 22, 2013

Hi,

 

I'm using a custom board with a MK60DN512VLL10 and an SDHC socket. This is my third project using this combination (same MQX 3.8 stack) although this project includes the AR4100 patch and seems to fail on initialising the SDHC card depending on the project size??

 

The call that fails is in:

 

* $FileName: sdcard_esdhc.c$

* $Version : 3.8.8.0$

* $Date    : Sep-1-2011$

 

boolean _io_sdcard_esdhc_init

(

/* [IN/OUT] SD card file descriptor */

MQX_FILE_PTR fd_ptr

)

 

 

/* Card identify */

command.COMMAND = ESDHC_CMD2;

command.TYPE = ESDHC_TYPE_NORMAL;

command.ARGUMENT = 0;

command.READ = FALSE;

command.BLOCKS = 0;


if (ESDHC_OK != ioctl (sdcard_ptr->COM_DEVICE, IO_IOCTL_ESDHC_SEND_COMMAND, &command))

{

     return FALSE;

}

 

 

 

If I change the size of the project by commenting out another function call or making a new one the issue goes away for a while and then comes back later!?

 

It almost looks like a boundary issue in the linker command file, but everything looks aligned as it should be?

 

 

Thanks

 

Luke

 

Outcomes