esdhc issues

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

esdhc issues

886 次查看
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

标记 (2)
0 项奖励
回复
0 回复数