I'm using the nRF52832 with FreeRTOS and nRF5_SDK_17.0.2 on a custom board.
I am using a peripheral from a third party that uses Flash storage for certain parameters.
When I use the driver using "bare-metal" techniques (no OS, just interrupt driven) everything works fine (including writing to the flash).
I'm trying to integrate this driver into FreeRTOS. I have all of the major functions working in FreeRTOS except for writing Flash via "sd_flash_write". I can set a breakpoint, step through and see that the call to this function (in the SD) never returns.
My FreeRTOS setup has a task for BLE (as provided in the Nordic port) and "normal" BLE functions work as expected (including reading the Flash).
If I comment out the write to Flash in the third party driver, all the other functionality of the third party driver work as expected (as integrated into FreeRTOS).
But if I enable the call to write the Flash, that call never returns and the system hangs.
I can't post the code, but am hoping that you may have some ideas what is happening. Is there some other "hook" needed to allow the SD write flash work with FreeRTOS?
Thanks!