I’m fairly new to FreeRTOS. My development environment is:
Atmel Studio 7.0
Atmel SAME70-XPLD demo board (with SAME70Q21 Cortex -M7 processor)
Percepio Trace 3.1
I will need multiple tasks to access the file system on an uSD card. I’ve incorporated FAT-SL into my project, and got the default sample code, using the RAM drive, up and running.
Problem ->> if I set F_FS_THREAD_AWARE == 1, I get a call to vApplicationStackOverflowHook.
To narrow this down, an exepction is being thrown (somewhere in the bowels of the RTOS), in prvCreateDemoFilesUsing_f_write(), contained within vCreateAndVerifySampleFiles(). I can comment this, and the associated prvVerifyDemoFileUsing_f_read() out, and it works fine. In other words, I can still leave in prvCreateDemoFileUsing_f_putc() and prvVerifyDemoFileUsing_f_getc() (this is the code used to create the nested subdirectories).
Also, if F_FS_THREAD_AWARE = 0, the entirity of the demo code works fine.
I’ve tired tuning parameters in config_fat_sl.h, to no avail. I’m unable to exactly pinpoint the exact cause of the exeception, within the sequence of prvCreateDemoFilesUsing_f_write().
I’m assuming this is some issue associated with the port to the -M7. But at this point, I’m getting over my head.
I’d greatly appreciate any advice, or additional troubleshooting steps, anyone could offer.