Hi Alice, now I have made some more small changes to the example of 'lpcxpresso55s69_power_manager_lpc' to allow enter deep-power-down with no debugger keyboard input, now it can enter deep-power-down with no debugger connected.
The current will now drop to ~365uA in deep-power-down. But this is higher than ~15uA for power-down, and still much higher than data sheet value of ~790nA.
See attached screenshot, and here is my sequence of events...

So with code modified for no keyboard GETCHAR() input, this happen...
1. Time at start of trace (before ~4.8sec) is to load code into debugger - stop at main().
2. At the ~4.8sec point, I start execution. Code will go straight to code of 'case kPmu_Deep_PowerDown:' and set RTC alarm for 4sec. Current is ~1.4mA
3. No wakeup will occur! As I said before, "With debugger attached I found MPU it can't come out of deep-power-down state".
5. At ~23.5sec I hit reset button. Now code will execute with no debugger attached. From that point code will quickly enter deep-power-down and the wake up by RTC at 4 sec alarm. It then restart and the cycle will repeat.
6. So now I am confident that MPU will get to deep-power-down-state but the trace shows current is ~359uA (at the marker of "26 s 208.508 ms").
Two questions for you:
1. What do I need to do for MPU enter deep-power-down state when debugger is connected?
2. How to get current from ~359uA down to data sheet value of ~790uA?
A copy of my modified file of power_manager_lpc.c is attached
Please check.
WARNING: After run this code take care to fit EVK jumper J10 to force ISP mode because debugger can't load new code when MPU in deep-power-down state!
Regards
Jon