Hi,
I'm working on a LPCXpresso55S36 evaluation board, and I'm trying to read the PMC->RESETCAUSE register to get the last chip reset reason, however it's value is always zero. I started from the demo project "power_mode_switch_lpc" in SDK 10.2.2 and I've tried to add a simple printf as follow in main function:
PRINTF("Last Reset cause: %d\n",PMC->RESETCAUSE);
At power-on, I expected that last reset cause was POR, so the value should be "1", but the printed value was"0". After RTC wakeup the device from the "Deep power down mode", i expected that "DPD_EVENTS_ORDER" bits was set as "010b" (RTC) and the "DPDRESET_RTC" bit was set to "1", but also in this case the printed value was always "0".
Am i missing something? How could i get info about last reset cause?
Thanks
Enrico