I am re-implementing a custom error handler that stores error data and forms an error report after reboot, after having a success with it in nRF SDK 15.
In nRF SDK I could manually edit the flash placement xml file to add a noinit section and declare a variable with __attribute__((section(".noinit_section_name"))).
In NCS you set static seciton placements in pm_static.yml file, but I can't find anything about noinit sections in NCS documentation. Can it be done?
I've looked into libraries that deal with flash data storage like NVS, but unfortunately they implement protection for write commands from being called from within interrupts.
My boards are nRF9160DK and Thingy:91, so I am looking to implement this with both 52840 and 9160.