I am trying to put the RSL10 processor in the lowest possible consumption mode and then wake it up using the WakeUp PAD. I have the following problems:
The watchdog is not disabled in sleep mode and after 8 seconds (4 seconds tor watchdog interupt and another 4 to reset) the part is reset by the watchdog.
I’ve tried to set the DebugEn bit (because while you debug the Cortex-M3 the watchdog is disabled)
CoreDebug->DHCSR = ( 0xA05FU << CoreDebug_DHCSR_DBGKEY_Pos ) | CoreDebug_DHCSR_C_DEBUGEN_Msk;
but this instruction has no effect because the core cannot modify that bit. I don’t see any way to disable the watchdog.
For the lowest consumption I’ve tried
ACS->VDDRET_CTRL = 0;
SYSCTRL->MEM_POWER_CFG = 0;
because I don’t want any memory retention, I simply want the CPU to reset when I assert the WakeUp PAD. Is this possible or you always need some memory powered during sleep?
There is no enable for the WakeUp PAD as there is for the other DIOx pads so if I put
ACS->WAKEUP_CFG = WAKEUP_DELAY_128 | WAKEUP_WAKEUP_PAD_RISING;
ACS->WAKEUP_CTRL = PADS_RETENTION_ENABLE |
should be enough to activate it. Unfortunately this doesn’t seem to work and I cannot wake up the CPU.