/dm-mcxn947-power-manager

The Power Manager example uses runtime menus to evaluate power modes power management features of MCX Nx4x.The example also uses the Power Manager component of MCUXpresso SDK, which provides a common framework of APIs for power management. For more details how to use this example , measure current, refer lab guide "MCXNx4x Power Management Lab.pdf"

Primary LanguageCOtherNOASSERTION

NXP Application Code Hub

MCXN94x power manager training lab

The Power Manager example uses runtime menus to evaluate the power modes and power management features of the MCX Nx4x.  This example also uses the Power Manager component of MCUXpresso SDK, which provides a common framework of APIs for power management. For more details how to use this example and measure current, refer to the lab guide "MCXNx4x Power Management Lab.pdf".

In this lab, you will learn:

  • about the Power Management features of the MCX Nx4x MCU
  • how to measure current on the FRDM-MCXN947 board
  • how to measure current with MCU-Link Pro and MCUXpresso IDE
  • about the Power Management component in the MCUXpresso SDK

Boards: FRDM-MCXN947, MCX-N9XX-EVK

Categories: Low Power

Peripherals: CLOCKS

Toolchains: MCUXpresso IDE, IAR, VS Code

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Results
  5. FAQs
  6. Support
  7. Release Notes

1. Software

2. Hardware

  • FRDM-MCXN947 board with USB Type-C cable
  • or MCX-N9XX-EVK board with micro USB cable
  • Personal Computer

3. Setup

The steps below detail how to import the example application into the 3 IDE options:

  1. Clone the repo or extract the project archive. In this example, the repo is cloned to C:\power_manager

The project defaults to the FRDM-MCXN947 board. To build for a different board, change the BOARD_NAME macro in board.h.

3.1 Importing into MCUXpresso IDE

  1. In the IDE's Quickstart panel, click Import project(s) from filesystem
  2. Browse to the Root Directory, at \boards\mcxn9xxevk\demo_apps\power_manager\cm33_core0\mcux Import Directory
  3. Import the power_manager project, and uncheck the box Copy projects into workspace. Then click Finish. Import settings
  4. The power_manager project is now included in the Project Explorer view, and is ready to build. Imported project

3.2 Importing into VS Code

Using VS Code requires the MCUXpresso extension. For details using this extension, see this wiki. 2) In the MCUXpresso extension view, in the Quickstart Panel, click Import Repository. 3) Choose the Local repo option, and import the local folder used in Setup. Import repo This MCUXpresso SDK Standalone repo will now be listed in the Installed Repositories view: Imported repo 4) In the Quickstart Panel, click Import Project. 5) Click the Folder button, and browse to the application directory \boards\mcxn9xxevk\demo_apps\power_manager\cm33_core0. Choose the repository imported in Setup. Choose the toolchain installed for VS Code. Import project The project named cm33_core0 will now be listed in the Projects view, and is ready to build. Imported project

3.3 Importing into IAR

  1. Use the menu File->Open Workspace, and open the file \boards\mcxn9xxevk\demo_apps\power_manager\cm33_core0\iar\power_manager.eww

3.4 Connect the board

On the board, connect the USB cable between the PC host and the MCU-Link USB port on the board

  • On the FRDM-MCXN947 board, connect to USB J17
  • On the MCX-N9XX-EVK board, connect to USB J5

3.5 Connect a serial terminal

Open a serial terminal with the following settings:

  • 115200 baud rate
  • 8 data bits
  • No parity
  • One stop bit
  • No flow control

4. Results

Refer to the lab guide "MCXNx4x Power Management Lab.pdf" for detailed steps using the demo application.

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

Sticky RESET sources:
Warm,   PIN,
#######    MCX Nx4x Power Manager component demo    #######

----------------------- Normal Boot -----------------------

Main Menu, press a key below:

        p: Power Modes Menu
        a: Analog Peripherals Menu
        c: Clocks Menu
        v: Voltage Menu
        s: System SRAM Menu
        e: Enter Selected Mode

5. Support

community.nxp.com

Project Metadata

Board badge Board badge

Category badge

Peripheral badge

Toolchain badge Toolchain badge Toolchain badge

Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.

Warning: For more general technical questions regarding NXP Microcontrollers and the difference in expected funcionality, enter your questions on the NXP Community Forum

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

7. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub January 2nd 2024