I have written code to determine the cause of a Reset on a SAMV71. The RSTC Status Register contains a code that can tell me if the CPU reset was caused by General Reset (powerup?). Watchdog Reset, Software Reset, Or USER RST which is NRST pin pulled low (Hardware Reset).
I can detect General Reset, Software Reset and Hardware Reset. However, a Watchdog Reset gives me the same code as Hardware Reset (USER_RST).
I have the following code to generate a Watchdog Reset.
This code does reset my processor. However, the RSTC Status register still says USER_RST not WDT_RST.
Can anyone tell me why?