I'm developing on the nRF52840, SDK15, and s140 v6.0. I'm trying to use the sd_power_gpregret_set() function to write a value that would then be read after reset to start the BLE dfu bootloader. The example bootloader is already set up to run this way but my issue is that the GPREGRET clears after a sd_nvic_SystemReset(). If I call the sd_power_system_off() and wake from that (which I believe also performs a reset) the GPREGRET value persists.
Should the GPREGRET persist after a NVIC_SystemReset()?