nRF5 SDK v12.2.0
Power Management Example

The Power Management example demonstrates how to use the Power Management library.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\pwr_mgmt

Testing

Test the Power Management Example application by performing the following steps:

  1. Compile and program the application.
  2. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: None
  3. After the configured time of inactivity, the application will switch to System OFF state. You can postpone this process by pressing any button.
  4. This process will be blocked if application is not ready. By default, it is not ready.
  5. Pressing BSP_BUTTON_0 will toggle the Ready status.
  6. Shortly press BSP_BUTTON_1 to immediately switch to System OFF state, without waiting for timeout.
  7. Wake up the application from System OFF by pressing BSP_BUTTON_1.
  8. Press and hold BSP_BUTTON_1 to immediately switch to System OFF state and stay in it.
  9. From this point, the application requires a reset to restart because the wakeup mechanism is not set up.

Documentation feedback | Developer Zone | Subscribe | Updated