Hi all, the application i'm using nRF52810 for requires that I keep the device powered on all the time. However, in the case of errors (tolerable within my application) I would like the nRF52810 to soft reset itself. This means reset the main() application and restart. I have the default NVIC_SystemReset() call still in app_error_weak.c (nRF SDK V15.2), and I've read that this causes problems with flash memory. It's important that the contents of my flash that I may/may not have written at the time of soft reset remains intact. When the application restarts, the first few lines of code read variables in flash. The whole idea is to maintain state variables across shutdowns or soft resets.
Can anyone advise how to do this? The MCU cannot be fully powered off, not even for 0.0001 miiliseconds. And I need to have any content I've written to flash stay how it is.