We are using PIC32Mx MCU with Freertos version V6.0.2 on our product.
We are planning to add a crash information logging and the required system back up(application related) into external flash memory(SPI Bus) before restarting the system whenever STACK over flow triggers .
We need to add this functionlity in the production firmware for field monitoring purpose. Is there any better way to do this?
Since vApplicationStackOverflowHook() function called from scheduler tick, is it possible to add this functionlity on that function with external flash memory read/write functionlity for this backup process?