SDK 16
nRF52840 with s140
Hello,
I'm working on implementing an assert handler and would like to store the file/line hash in NVM. I currently have fstorage configured with the SD backend and in general have not any issues with writing to NVM except in this scenario.
The problem I am seeing is when an assert in FreeRTOS timer code occurs, that the _wait_for_flash_ready() call hangs. In my troubleshooting, I have found that replacing nrf_delay_ms() with vTaskDelay inside _wait_for_flash_ready() works fine. With other asserts from lower priority tasks, the nrf_delay_ms() works fine. I've seen lots of other posts where the issue ends up being a priorities. But since this is from the assert handler and will be called from many different priority levels, how can I ensure that fstorage will get the time it needs to execute?
Also, why is it that the task delay works when the nrf_delay does not?
Thanks!