• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-155130

src/04-Jan-2025-235136

CMakeLists.txtD04-Jan-2025281 118

KconfigD04-Jan-2025674 2720

README.rstD04-Jan-2025975 3926

prj.confD04-Jan-202564 54

sample.yamlD04-Jan-20254.7 KiB151150

README.rst

1.. zephyr:code-sample:: nrf_system_off
2   :name: System Off
3   :relevant-api: sys_poweroff subsys_pm_device
4
5   Use deep sleep on Nordic platforms.
6
7Overview
8********
9
10This sample can be used for basic power measurement and as an example of
11deep sleep on Nordic platforms.
12
13RAM Retention
14=============
15
16This sample can also demonstrate RAM retention.
17By selecting ``CONFIG_APP_USE_RETAINED_MEM=y`` state related to number of boots,
18number of times system off was entered, and total uptime since initial power-on
19are retained in a checksummed data structure.
20RAM is configured to keep the containing section powered while in system-off mode.
21
22Requirements
23************
24
25This application uses nRF51 DK, nRF52 DK or nRF54L15 DK board for the demo.
26
27Sample Output
28=============
29
30nRF52 core output
31-----------------
32
33.. code-block:: console
34
35   *** Booting Zephyr OS build v2.3.0-rc1-204-g5f2eb85f728d  ***
36
37   nrf52dk system off demo
38   Entering system off; press sw0 to restart
39