AnsweredAssumed Answered

MCU sleep mode

Question asked by riccardolalli on Jan 17, 2020
Latest reply on Feb 13, 2020 by riccardolalli


I'm developing a baremetal application and I'm thinking to put the mcu in sleep mode when idle using the WFI instruction.

As far as I understand, when calling WFI with mcu in RUN mode and DEEPSLEEP register set to 0, the mcu just goes to sleep (no STOP1 or STOP2 mode involved), is it correct?

I'm trying to figure out what's the behaviour of other peripherals when the mcu is in sleep: is there any operation that needs to be terminated before going to sleep?

For example, is it safe to call a WFI when there is an eeeprom write running at the same time?

Thanks and regards,