1.. zephyr:code-sample:: mimxrt1060_evk_system_off 2 :name: RT1060 System Off 3 :relevant-api: sys_poweroff 4 5 Use soft-off on MIMXRT1060-EVK. 6 7Overview 8******** 9 10This sample can be used for basic power measurement and as an example of 11soft off on NXP i.MX RT platforms. The functional behavior is: 12 13* Busy-wait for 2 seconds 14* Turn the system off after enabling wakeup through a button press, and 15 additionally set an alarm 10 seconds in the future to wake up the processor 16 17A power monitor will be able to distinguish among these states. 18 19Requirements 20************ 21 22This application uses MIMXRT1060_EVK or MIMXRT1060_EVKB for the demo. 23 24Building, Flashing and Running 25****************************** 26 27.. zephyr-app-commands:: 28 :zephyr-app: samples/boards/nxp/mimxrt1060_evk/system_off 29 :board: mimxrt1060_evk 30 :goals: build flash 31 :compact: 32 33Running: 34 351. Open UART terminal. 362. Power Cycle Device. 373. Device will turn on and idle for 2 seconds 384. Device will turn itself off using deep sleep state 1. Press SW 5 39 to wake the device and restart the application as if it had been 40 powered back on. Alternatively, wait 10 seconds for the SNVS RTC 41 alarm to fire and wake the device up automatically. 42 43Sample Output 44================= 45MIMXRT1060_EVK core output 46-------------------------- 47 48.. code-block:: console 49 50 *** Booting Zephyr OS build zephyr-v3.0.0-2733-ged206aca47cc *** 51 52 mimxrt1060_evkb system off demo 53 Busy-wait 2 s 54 Sleep 2 s 55 RTC Alarm set for 10 seconds to wake from soft-off. 56 Entering system off; press GPIO_5 to restart sooner 57