Hi,
I need to know. How to put the nrf5340 in sleep mode and how can I woke up the device based on interrupt. Kindly, let me know. How can I achieve this.
Thanks & Regards,
Navin
Hi,
I need to know. How to put the nrf5340 in sleep mode and how can I woke up the device based on interrupt. Kindly, let me know. How can I achieve this.
Thanks & Regards,
Navin
Hi,
Which sleep mode do you want to put the chip in, and what kind of "interrupt" do you want to wake up from?
System OFF mode is the lowest power mode available for the chip, but from this mode you can only wakeup by a given set of peripherals/signals (see above link). A wakeup from System OFF will trigger a reset, and you will need to perform some action based on the value of the RESETREAS register in your main() function. You can enter System OFF mode as shown in the nRF5x System OFF demo sample.
In System ON mode, the CPU can wake on any event (for instance from timer, RTC, RADIO, serial peripherals, etc). This is normally the default power mode when the CPU does not have any tasks to do, and it is handled by the IDLE thread in Zephyr/nRF Connect SDK.
Best regards,
Jørgen
Hi,
Which sleep mode do you want to put the chip in, and what kind of "interrupt" do you want to wake up from?
System OFF mode is the lowest power mode available for the chip, but from this mode you can only wakeup by a given set of peripherals/signals (see above link). A wakeup from System OFF will trigger a reset, and you will need to perform some action based on the value of the RESETREAS register in your main() function. You can enter System OFF mode as shown in the nRF5x System OFF demo sample.
In System ON mode, the CPU can wake on any event (for instance from timer, RTC, RADIO, serial peripherals, etc). This is normally the default power mode when the CPU does not have any tasks to do, and it is handled by the IDLE thread in Zephyr/nRF Connect SDK.
Best regards,
Jørgen
Hi Jorgen,
I want to use system off mode. I will try and let you know. Kindly, Let me know where can I get the samples.
Thanks & Regards
Navin
Hi Jorgen,
I have tested that sample with nrf5340dk. I have got the sleep mode failed error.

Kindly, help me to rectify this
Thanks & Regards,
Navin
The error is typically shown if the application is not able to enter System OFF mode, as the call to enter System OFF should not return, and a wakeup will trigger a reset. The reason for this may be that the chip is in debug interface mode, which will make the chip enter Emulated System OFF mode.
Please make sure to power cycle the device/board before testing the sample, to make sure it is not in debug interface mode.
Hi,
I ensure that the device is not in debug interface mode. Still, the error is coming
Thanks & Regards,
NAVIN