Dear all,
One customer following below application note http://www.ti.com/lit/an/spraao7/spraao7.pdf source code and find some time write and read is ok, but sometimes SD card may crashed.
any device could not read and write crashed SD card, only format SD card could make it works again.
Now i feel pzuule about this problem.
following is customer description:
focus on below code:
spi_xmit_command(READ_SINGLE_BLOCK,sector,DUMMY_CRC);
RESET_RESPONSE;
while(response!=SUCCESS)
sd_command_response();
error will happen when response!=SUCCESS, when many times response!=SUCCESS, CPU will be reset and SD card crash issue will happen.
I also find related issue problem in other email:
http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/374796.aspx
Could any one help to answer my question?
Many thanks.