29. Power Mode Switch

29.1. Overview

power_mode_switch shows how different power modes are switched to/from

29.2. Board Setting

  • There is a PUART development board available

    • Using PUART as Console

    • Using PUART as a wake-up source

    • Connect serial port (from PUART, refer to PUART pins ) to PC

  • There is no PUART development board available

    • Use normal uart console

    • Using WKUP pin as wake-up source

29.3. Note

  • Please power cycle the board (boot from flash) is needed to run the demo application after this firmware is downloaded.

29.4. Running the example

When the project runs correctly, and the serial port terminal will output the following information:

Power mode switch demo:
  1 - Enter wait mode
  2 - Enter stop mode
  3 - Enter standby mode
  4 - Enter shutdown mode

Switch to different power mode by enter different option on serial port terminal.