This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am using an 8 Gb SDcard connected through the SPI3 interface on the MCU and I find out that sometimes while trying to open the file some iterations tend to fail with FR_DISK_ERR
and after deep-dive into FATfs and SDSPI lib inside TIdrivers I find out the following sequence happens while sending the CMD17 to SDCard
CMD17(0x51) + u32_3_Buffer_len + u32_3_Buffer_len + u32_1_Buffer_len + u32_0_Buffer_len + CRC_val(default val 0x01) -->> TX
then we should Wait for a valid response in timeout; 10 attempts which should be 0x00 for the next step of reception at the function "SDSPITiva_diskRead"
but instead, I keep receiving 0x67 which invalidates the read operation with the error of FR_DISK_ERR
also, sometimes this value is 0x00 but afterward, inside the function "rcvr_datablock" we receive an invalid token which should be 0xFE but instead, we receive 0xFF which also invalidates the read operation with the same error code FR_DISK_ERR
this error happens in a random way for a specific period of time about 7 or 9 msec but keeps rejecting all SDcard open operations which are really annoying
also, I noticed that this issue starts with invalidating the token then the send_cmd then the token, and so on till the SDcard responds with proper values
Hi,
I don't have much experience with TI-RTOS SDSPI drivers. I search for archives and find this post that may be helpful.