Hi Leo
I have made som changes, and got something to work.
I'm using the BOD when the power supply is disconnected, to set it into deep power down.
Some off it works. but it doesn't look like it finishes all off the funtionality in POWER_EnterDeepPowerDown, and I can't debug the code while the 3V3 power is disconnected.
If I set the POWER_EnterDeepPowerDown before disconnecting the power (3V3), the the power consumption is around 100uA on the Vbat pin. But if I let it disconnect the power while its still running as usual, the power consumption is about 1200uA.
I know it turns off something inside off the POWER_EnterDeepPowerDown function, because if i leave it outcomment in the BOD then the power consumption is about 2mA.
Do you have any idea how to get the lpc55s06 to EnterDeepPowerDown, while the VDD is not supplied?
best regard
Landgrebe
@_Leo_