I would like to detect if a reset happened due to a brownout or an actual power off.
I tired so far using the GPREGRET and RESETREAS registers. They are useful to detect soft resets and distinguish between their causes, but since they are cleared on…