-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
ZhaoxiangJin
wants to merge
9
commits into
zephyrproject-rtos:main
Choose a base branch
from
nxp-upstream:enable-nxp-mcus-general-power-off-demo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Enable nxp mcus general power off demo #93248
ZhaoxiangJin
wants to merge
9
commits into
zephyrproject-rtos:main
from
nxp-upstream:enable-nxp-mcus-general-power-off-demo
+606
−240
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
ZhaoxiangJin
commented
Jul 17, 2025
- 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.
- Migrate the existing mimxrt595_evk/system_off example to the new poweroff example.
e5b989b
to
b5b52a1
Compare
b5b52a1
to
af45214
Compare
@ZhaoxiangJin please address the CI issues |
af45214
to
0ef42bc
Compare
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]>
0ef42bc
to
8266f47
Compare
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Documentation Infrastructure
area: Samples
Samples
platform: NXP
NXP
Release Notes
To be mentioned in the release notes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.