Hi,
I'm trying to use the GPREGRET register to save some state across resets. It seems to work as documented, but I'm getting the following error after each write operation to the register:
:ERROR:Fatal
:INFO:Hit weak handler
Interestingly, the stored value is preserved. If I comment out this line
NRF_POWER->GPREGRET = r;
the exception goes away (but I lose the value of r, of course).
Any suggestions?
Thanks,