Skip to content

Enable nxp mcus general power off demo #93248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ZhaoxiangJin
Copy link
Contributor

  1. Enabled generic poweroff example for NXP MCUs. The example can test pass on frdm_mcxa153, frdm_mcxa156, frdm_mcxa166, frdm_mcxa276, frdm_mcxn236, frdm_mcxn947 and mimxrt595_evk.
  2. Migrate the existing mimxrt595_evk/system_off example to the new poweroff example.

@dleach02
Copy link
Member

@ZhaoxiangJin please address the CI issues

@ZhaoxiangJin ZhaoxiangJin force-pushed the enable-nxp-mcus-general-power-off-demo branch from af45214 to 0ef42bc Compare July 22, 2025 14:22
Pulling MCUX SDK cmc, vbat, wuu driver to Zephyr build tree.

Signed-off-by: Zhaoxiang Jin <[email protected]>
This commit enables MCXN236, MCXN947 LPUART pin internal
pullup resistor. For MCXN947 and MCXN236, during LPUAR
initialization, the RX pin is pulled down internally
and STAT[RAF] is set to one. In this state, attempting
to enter low power mode will trigger LPACK reset and
therefore cannot truly enter low power mode. The correct
setting should be to enable LPUART pin internal pullup
resistor.

Signed-off-by: Zhaoxiang Jin <[email protected]>
This commit introduced the following changes:
1. Selected kconfig option 'HAS_POWEROFF' for NXP
   MCXA series.
2. Added power.c for NXP MCXA series, in this file,
   we currently implemented 'z_sys_poweroff()' function.
3. For the MCXA series, after waking up from the deep
   power down mode, the reset handler will be executed,
   and we need to release the I/O pads and certain peripheral
   devices to normal operating mode in 'soc_reset_hook'.

Signed-off-by: Zhaoxiang Jin <[email protected]>
This commit introduced the following changes:
1. Selected kconfig option 'HAS_POWEROFF' for NXP
   MCXN series.
2. Added power.c for NXP MCXN series, in this file,
   we currently implemented 'z_sys_poweroff()' function.
3. For the MCXN series, after waking up from the deep
   power down mode, the reset handler will be executed,
   and we need to release the I/O pads and certain peripheral
   devices to normal operating mode in 'soc_reset_hook'.

Signed-off-by: Zhaoxiang Jin <[email protected]>
This commit introduced the following changes:
1. MIMXRT595 poweroff corresponds to its full
deep power down mode not deep power down mode.
2. Enable OSC32K before poweroff, the OSC32K
is the clock source of the wakeup source RTC.
3. Enable RTC wake-up function.

Signed-off-by: Zhaoxiang Jin <[email protected]>
Enabled FRO16k for LPTMR when LPTMR clock source
is set to 0x1.

Signed-off-by: Zhaoxiang Jin <[email protected]>
Enabled FRO16k for LPTMR when LPTMR clock source
is set to 0x1.

Signed-off-by: Zhaoxiang Jin <[email protected]>
This commit introduced the following changes:
1. Enabled generic poweroff example for NXP MCUs. The
example is test on frdm_mcxa153, frdm_mcxa156, frdm_mcxa166,
frdm_mcxa276, frdm_mcxn236, frdm_mcxn947 and mimxrt595_evk.
3. Migrate the existing mimxrt595_evk/system_off example
to the new poweroff example.
4. The Poweroff example now supports counter wake-up and
button/GPIO wake-up, suitable for most NXP devices/boards.
For testing purposes, frdm_mcxn236 is wakeup using the
wake-up button; frdm_mcxa153, frdm_mcxa156, frdm_mcxa166,
frdm_mcxa276, and frdm_mcxn947 are wakeup using lptmr;
mimxrt595_evk is wakeup using high-resolution RTC.

Signed-off-by: Zhaoxiang Jin <[email protected]>
1. Update redirects.py to find the correct mimxrt595_evk
system_off example README.
2. Update release-notes to record the new nxp poweroff
example.

Signed-off-by: Zhaoxiang Jin <[email protected]>
@ZhaoxiangJin ZhaoxiangJin force-pushed the enable-nxp-mcus-general-power-off-demo branch from 0ef42bc to 8266f47 Compare July 22, 2025 14:24
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants