I have been working on a project where I move an ARM Core M4 into SLEEP mode through executing a WFI instruction in C firmware. I want to also be able to move the ARM Core M4 into SLEEP mode through the Serial Wire pins.
Are there registers in the M4 that you can write to to move it into SLEEP mode without executing a WFI or WFE instruction?
Or otherwise is there anyway to move to SLEEP mode using the SWD?