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:
- Compile and program the application.
- 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
- After the configured time of inactivity, the application will switch to System OFF state. You can postpone this process by pressing any button.
- This process will be blocked if application is not ready. By default, it is not ready.
- Pressing BSP_BUTTON_0 will toggle the Ready status.
- Shortly press BSP_BUTTON_1 to immediately switch to System OFF state, without waiting for timeout.
- Wake up the application from System OFF by pressing BSP_BUTTON_1.
- Press and hold BSP_BUTTON_1 to immediately switch to System OFF state and stay in it.
- From this point, the application requires a reset to restart because the wakeup mechanism is not set up.