I’m able to open and read files from an sdcard during an initialization section of code before starting the scheduler. I try to open and read a file from the same sdcard within a task after the scheduler is started and am not able to perform the read.
I don’t get an error opening the file; however, when attempting a read I get an error:
FR_DISK_ERR, /* (1) A hard error occured in the low level disk I/O layer */
I tried suspending the scheduler before the read, using critical sections etc, but am not able to perform a read. Any suggestions on how to proceed?