This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Weak handler when writing to GPREGRET?

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,

Parents Reply Children
Related