MCUXpresso SDK Documentation

power_manager_test_bm

power_manager_test_bm#

Overview#

The power manager test application demonstrates the basic usage of power manager framework without RTOS. The demo tests all features of power manager framework, including notification manager, wakeup source manager and so on. The demo shows how the various power mode switch to each other based on power manager framework. However, in actual low power use case, to save energy and reduce the consumption even more, many things can be done including:

  • Disable the clock for unnecessary module during low power mode. That means, programmer can disable the clocks before entering the low power mode and re-enable them after exiting the low power mode when necessary.

  • Disable the function for unnecessary part of a module when other part would keep working in low power mode. At the most time, more powerful function means more power consumption. For example, disable the digital function for the unnecessary pin mux, and so on.

  • Set the proper pin state (direction and logic level) according to the actual application hardware. Otherwise, the pin current would be activated unexpectedly waste some energy.

  • Other low power consideration based on the actual application hardware.

  • Debug pins(e.g SWD_DIO) would consume additional power, had better to disable related pins or disconnect them.

Supported Boards#

MIMXRT1170-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1170-EVKB board

  • Personal Computer

  • USB to Com Converter

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When running the demo, the debug console shows the menu to provide the desired operation.

Power Manager Test.

Normal Boot. Previous setpoint is 0. Current setpoint is 0.

Please select the desired power mode: Press A to enter: Setpoint0, CM7 domain WAIT Press B to enter: Setpoint1, CM7 domain STOP Press C to enter: Setpoint2, CM7 domain STOP Press D to enter: Setpoint3, CM7 domain STOP Press E to enter: Setpoint4, CM7 domain STOP Press F to enter: Setpoint5, CM7 domain STOP Press G to enter: Setpoint6, CM7 domain STOP Press H to enter: Setpoint7, CM7 domain STOP Press I to enter: Setpoint8, CM7 domain STOP Press J to enter: Setpoint9, CM7 domain SUSPEND Press K to enter: Setpoint10, CM7 domain SUSPEND

Waiting for power mode select…

Note: To debug in external flash, following steps are needed:

  1. Select the flash target and compile.

  2. Set the SW1: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J11.

  3. Start debugging in IDE.

    • Keil: Click “Download (F8)” to program the image to external flash first then clicking “Start/Stop Debug Session (Ctrl+F5)” to start debugging.

Note: Flexspi_nor_debug and Flexspi_nor_release targets on armgcc toolchain need to click SW4(reset button) to run cases after downloading the image.

EVK-MIMXRT595
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT595 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J40) on the board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Deep Power Down
        Press D to enter: Full Deep Power Down

Waiting for power mode select...

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Deep Power Down
        Press D to enter: Full Deep Power Down

Waiting for power mode select...

EVK-MIMXRT685
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT685 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J40) on the board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Deep Power Down
        Press D to enter: Full Deep Power Down

Waiting for power mode select...

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Deep Power Down
        Press D to enter: Full Deep Power Down

Waiting for power mode select...

FRDM-MCXN947
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947 board

  • Personal Computer

Board settings

Two methods to measure the power consumption:

  1. Measure the current of the MCU by connecting the ammeter to the J24 port.

  2. Connect the J9 port of the MCU-Link Debug Probe and the J24 port of the FRDM board,

then use the energy measurement function of MCUXpresso IDE to measure the current of the MCU.
| Signal | FRDM Board | MCU-LinkProbe |
| IDD_IN | J24-1 | J9 (current in) |
| IDD_OUT | J24-2 | J9 (current out)|
| VSS | J10-4 | J9 GND |

For MCU-Link Debug Probe, please refer to the link https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcu-link-debug-probe:MCU-LINK

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J17.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Normal Boot.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Selected to enter Sleep.

 Select the wake up timeout in seconds.
 The allowed range is 1s - 9s.
 Eg. enter 5 to wake up in 5 seconds.
 Waiting for input timeout value...
 Will wakeup in 5 seconds.
 Enable VBAT.
 De-init UART.
 Re-init UART.
 Disable VBAT.
Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...
FRDM-MCXN947T
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947T board

  • Personal Computer

Board settings

Two methods to measure the power consumption:

  1. Measure the current of the MCU by connecting the ammeter to the J24 port.

  2. Connect the J9 port of the MCU-Link Debug Probe and the J24 port of the FRDM board,

then use the energy measurement function of MCUXpresso IDE to measure the current of the MCU.
| Signal | FRDM Board | MCU-LinkProbe |
| IDD_IN | J24-1 | J9 (current in) |
| IDD_OUT | J24-2 | J9 (current out)|
| VSS | J10-4 | J9 GND |

For MCU-Link Debug Probe, please refer to the link https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcu-link-debug-probe:MCU-LINK

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J17.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Normal Boot.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Selected to enter Sleep.

 Select the wake up timeout in seconds.
 The allowed range is 1s - 9s.
 Eg. enter 5 to wake up in 5 seconds.
 Waiting for input timeout value...
 Will wakeup in 5 seconds.
 Enable VBAT.
 De-init UART.
 Re-init UART.
 Disable VBAT.
Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...
FRDM-MCXW71
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW71 Board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

FRDM-RW612
Hardware requirements
  • Micro USB cable

  • FRDM-RW612 board

  • Personal Computer

Board settings

Ensure R148 is removed. U38 DIP 1,2,3,4 all off HD12 1-2, 3-4 connected JP31 1-2 connected JP34 2-3 connected JP39 2-3 connected

Prepare the Demo
  1. Connect a micro USB cable between the PC host and the MCU-Link USB port (J10) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

MCU wakeup source 0x0...

Power Manager Test.

Please select the desired power mode:
        Press A to enter: PM0 - Active
        Press B to enter: PM1 - Idle
        Press C to enter: PM2 - Standby
        Press D to enter: PM3 - Sleep
        Press E to enter: PM4 - Deep Sleep

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

2
Will wakeup in 2 seconds.
De-init UART.
Re-init UART.
Woken up by RTC

Next Loop

Please select the desired power mode:
        Press A to enter: PM0 - Active
        Press B to enter: PM1 - Idle
        Press C to enter: PM2 - Standby
        Press D to enter: PM3 - Sleep
        Press E to enter: PM4 - Deep Sleep

Waiting for power mode select...

FRDM-KW43
FRDM-KW43 Power Manager Test
Hardware requirements
  • Type-C USB cable

  • FRDM-KW43 Board

  • Personal Computer

Board settings
  • No special jumper change is required for the default LPTMR wakeup flow.

  • On current KW43 ROM, Power Down and Deep Power Down wake through normal boot instead of fast boot resume.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The demo uses LPTMR0 as the wakeup source for all framework power states.

For Sleep and Deep Sleep, the application resumes execution after wakeup.

For Power Down and Deep Power Down, the current KW43 A0 ROM returns through the normal boot path, so the banner is printed again after wakeup.

KW45B41Z-EVK
Hardware requirements
  • Mini/micro USB cable

  • KW45B41 EVK Board

  • Personal Computer

Board settings

Please note that this example only for A1 silicon.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

KW47-EVK
Hardware requirements
  • Type-C USB cable

  • KW47-EVK Board

  • Personal Computer

Board settings

Please note that this example only for A1 silicon.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

MCX-N9XX-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-N9XX-EVK board

  • Personal Computer

Board settings

Use the on-board MCULink and MCUXpresso IDE energy measurement function to measure the MCU current. When use this method, please disconnect JP29.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J5.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Normal Boot.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Selected to enter Sleep.

 Select the wake up timeout in seconds.
 The allowed range is 1s - 9s.
 Eg. enter 5 to wake up in 5 seconds.
 Waiting for input timeout value...
 Will wakeup in 5 seconds.
 Enable VBAT.
 De-init UART.
 Re-init UART.
 Disable VBAT.
Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...
MCX-W72-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W72-EVK Board

  • Personal Computer

Board settings

Please note that this example only for A1 silicon.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

RD-RW612-BGA
Hardware requirements
  • Micro USB cable

  • RD-RW612-BGA board

  • Personal Computer

Board settings

Ensure R148 is removed. U38 DIP 1,2,3,4 all off HD12 1-2, 3-4 connected JP31 1-2 connected JP34 2-3 connected JP39 2-3 connected

Prepare the Demo
  1. Connect a micro USB cable between the PC host and the MCU-Link USB port (J7) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

MCU wakeup source 0x0...

Power Manager Test.

Please select the desired power mode:
        Press A to enter: PM0 - Active
        Press B to enter: PM1 - Idle
        Press C to enter: PM2 - Standby
        Press D to enter: PM3 - Sleep
        Press E to enter: PM4 - Deep Sleep

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

2
Will wakeup in 2 seconds.
De-init UART.
Re-init UART.
Woken up by RTC

Next Loop

Please select the desired power mode:
        Press A to enter: PM0 - Active
        Press B to enter: PM1 - Idle
        Press C to enter: PM2 - Standby
        Press D to enter: PM3 - Sleep
        Press E to enter: PM4 - Deep Sleep

Waiting for power mode select...

FRDM-MCXN236
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN236 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J17.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Normal Boot.

Please select the desired power mode:
        Press A to enter: Sleep (IDD_SLEEP)
        Press B to enter: Deep Sleep (IDD_DSLEEP_LP)
        Press C to enter: Power Down (IDD_PDOWN_RET_0V7)
        Press D to enter: Deep Power Down (IDD_DPOWN_32K)

Waiting for power mode select...
Power consumption in sleep mode corresponds to IDD_SLEEP on the datesheet.
Power consumption in deep sleep mode corresponds to IDD_DSLEEP_LP on the datesheet.
Power consumption in power down mode corresponds to IDD_PDOWN_RET_0V7 on the datesheet.
Power consumption in power down mode corresponds to IDD_DPOWN_32K on the datesheet.

---------------------------------------------------------------------------
|Symbol           |Power consumption in datasheet|Tested Power consumption|
|-----------------|------------------------------|------------------------|
|IDD_SLEEP        |             1.48mA           |         1.65mA         |
|IDD_DSLEEP_LP    |             0.12mA           |         0.09mA         |
|IDD_PDOWN_RET_0V7|             2.52uA           |         2.7uA          |
###### |IDD_DPOWN_32K    |             1.28uA           |         1.4uA          |
KW47-LOC
Hardware requirements
  • Type-C USB cable

  • KW47-LOC Board

  • Personal Computer

Board settings

Please note that this example only for A1 silicon.

Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

MCXW72-LOC
Hardware requirements
  • Type-C USB cable

  • MCXW72-LOC Board

  • Personal Computer

Board settings

Please note that this example only for A1 silicon.

Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

FRDM-MCXA266
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA266 board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

when running the demo, the debug console shows the menu to command the MCU to the target power mode.

NOTE: 1.Only input when the demo asks for input. Input entered at any other time might cause the debug console to overflow and receive the wrong input value. 2. Wake-up from Deep Power Down mode through wakeup reset that will reset the program(“Normal Boot” will be printed).

Normal Boot.

###########################    Power Mode Switch Demo    ###########################
Power Manager Test.

Normal Boot.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

FRDM-MCXA366
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA266 board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

when running the demo, the debug console shows the menu to command the MCU to the target power mode.

NOTE: 1.Only input when the demo asks for input. Input entered at any other time might cause the debug console to overflow and receive the wrong input value. 2. Wake-up from Deep Power Down mode through wakeup reset that will reset the program(“Normal Boot” will be printed).

Normal Boot.

###########################    Power Mode Switch Demo    ###########################
Power Manager Test.

Normal Boot.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

FRDM-MCXW72
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW72 Board

  • Personal Computer

Board settings

Please note that this example only for A1 silicon.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

FRDM-MCXW23
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW23 Board

  • Personal Computer

Board settings

Probe JP12 to measure power consumption in different power modes:

Power Mode

Current Consumption

Sleep

304uA

Deep Sleep

5.57uA

Power Down

2.28uA

Deep Power Down

570nA

Power Off

15nA

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power mode switch demo in the terminal window:

Normal Boot.
Calibrating RTC Clock Dividers...

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down(CPU RET)
        Press D to enter: Deep Power Down
        Press E to enter: Power Off

Waiting for power mode select...
MCX-W71-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W71-EVK Board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

The log below shows the output of the power manager test demo in the terminal window:

Power Manager Test.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

Select the wake up timeout in seconds.
The allowed range is 1s ~ 9s.
Eg. enter 5 to wake up in 5 seconds.

Waiting for input timeout value...

3
Will wakeup in 3 seconds.
De-init UART.
Re-init UART.

Next Loop

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...

FRDM-MCXA346
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA266 board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

when running the demo, the debug console shows the menu to command the MCU to the target power mode.

NOTE: 1.Only input when the demo asks for input. Input entered at any other time might cause the debug console to overflow and receive the wrong input value. 2. Wake-up from Deep Power Down mode through wakeup reset that will reset the program(“Normal Boot” will be printed).

Normal Boot.

###########################    Power Mode Switch Demo    ###########################
Power Manager Test.

Normal Boot.

Please select the desired power mode:
        Press A to enter: Sleep
        Press B to enter: Deep Sleep
        Press C to enter: Power Down
        Press D to enter: Deep Power Down

Waiting for power mode select...