FF_ERR_DEVICE_DRIVER_FAILED, FreeRTOS-FAT, and possible resolutions?

Hi all,

Thanks in advance for your help.

I’m trying to get some sample FreeRTOS-FAT code working on an AM243 Eval board (with SD slot/card).

fp = ff_fopen(fileName, "w+");

returns 0. When I step through it, I see that the underlying error being returned by FF_CreateFile is FF_ERR_DEVICE_DRIVER_FAILED. However, that’s about as far as I get diagnosing it. What should I try next to diagnose/debug the true underlying condition here, please?

Also of note: if, immediately after ff_open(), I perform stdioGET_ERRNO(), that returns 0, too, in a way that suggests something else might be wrong.

Thanks!

This error means that the your device driver returned an error. Are you using the correct port for your part? I’d suggest to step into the code and see where the error is coming from?