This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Code getting restarted after getting error as FR_DISK_ERR

Hi,

I am working on interfacing SD card with nrf52. I am sampling SAADC at 1000 sps and trying to write over SD card as well as sending over BLE. Both operations are working fine but after FR_DISK_ERR , entire code gets restarted. There is no periodic occurrence of this error. It occurs randomly. Documentation of FR_DISK_ERR says it is unrecoverable error.

Does anyone faced this problem previously?

Sometimes in debug mode code gets stopped at memory location 0x1e054...shown below code_stopped_at.JPG

What could be the issue?

Parents
  • Hi Ole,

    I am still getting the same error from ff_result = f_stat(fileName, &fno);. This time along with FR_DISK_ERR , I ma struggling with FR_INVALID_OBJECT resulting from ff_result = f_close(&file); and FR_NO_PATH resulting from ff_result = f_stat(fileName, &fno);

    Is there any documentation which indicates what is the remedy to these errors..

Reply
  • Hi Ole,

    I am still getting the same error from ff_result = f_stat(fileName, &fno);. This time along with FR_DISK_ERR , I ma struggling with FR_INVALID_OBJECT resulting from ff_result = f_close(&file); and FR_NO_PATH resulting from ff_result = f_stat(fileName, &fno);

    Is there any documentation which indicates what is the remedy to these errors..

Children
No Data
Related