zephyr/samples/boards/nordic/system_off
Bartlomiej Buczek 70d5d38380 samples: boards: nordic: system_off: fix sample regex.
Application won't wakeup without external trigger in
the analog comparator wakeup configuration.

Therefore removing post-wakeup lines from sample regex as they are not
expected to occur in default testing scenario (without external triggers).

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-01-21 09:13:13 +01:00
..
boards samples: nordic: system_off: use retained_mem on all targets 2024-12-23 18:40:52 +01:00
src samples: nordic: system_off: use retained_mem on all targets 2024-12-23 18:40:52 +01:00
CMakeLists.txt samples: nordic: system_off: use retained_mem on all targets 2024-12-23 18:40:52 +01:00
Kconfig samples: nordic: system_off: use retained_mem on all targets 2024-12-23 18:40:52 +01:00
prj.conf
README.rst samples: nordic: system_off: use retained_mem on all targets 2024-12-23 18:40:52 +01:00
sample.yaml samples: boards: nordic: system_off: fix sample regex. 2025-01-21 09:13:13 +01:00

.. zephyr:code-sample:: nrf_system_off
   :name: System Off
   :relevant-api: sys_poweroff subsys_pm_device

   Use deep sleep on Nordic platforms.

Overview
********

This sample can be used for basic power measurement and as an example of
deep sleep on Nordic platforms.

RAM Retention
=============

This sample can also demonstrate RAM retention.
By selecting ``CONFIG_APP_USE_RETAINED_MEM=y`` state related to number of boots,
number of times system off was entered, and total uptime since initial power-on
are retained in a checksummed data structure.
RAM is configured to keep the containing section powered while in system-off mode.

Requirements
************

This application uses nRF51 DK, nRF52 DK or nRF54L15 DK board for the demo.

Sample Output
=============

nRF52 core output
-----------------

.. code-block:: console

   *** Booting Zephyr OS build v2.3.0-rc1-204-g5f2eb85f728d  ***

   nrf52dk system off demo
   Entering system off; press sw0 to restart