Hi,
We have a pcb which uses the C5515 and an SD card in conjunction with CSL v3.04.
We've seen spurious errors with the file system, and have debugged it back to the method MMC_write() in CSL v3.04.
Occasionally this method returns the value CSL_EMMCSD_WRITE_ERROR.
The biggest problem is getting it to fail predictively, which we have not been able to do.
The error can occur on an SD card which was just reformatted too (the reformat is being done in Windows 7), so no user data is on the card.
The code fails in the below section:
/* Added Pedro's response KR032010 */ response = (hMmcsd->mmcRegs->MMCRSP7 << 8); response = response << 8; response |= hMmcsd->mmcRegs->MMCRSP6; if( (response & 0xFFFF00FF) != 0) { return (CSL_EMMCSD_WRITE_ERROR); }
The value of response has been 0x00400900 when the error occurs, I will try to find out if this value is consistent with the failure.
Does anyone know what could lead to this type of error?
The next action item would be to find out what the value 0x00400900 means as a response which I will post here if I can figure it out.
Thanks!
Ben