esdhc issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

esdhc issues

355 Views
lukeb74
Contributor I

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

Tags (2)
0 Kudos
0 Replies