Skip to content
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

poweroff: nordic: streamline RAM retention strategy #82262

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

Conversation

nika-nordic
Copy link
Collaborator

retained_mem should be used for RAM retention management on nRF devices.
sys_poweroff should disable RAM retention for unused RAM blocks to achieve lowest power consumption in System OFF state.
Align system_off sample accordingly.

Common symbol is defined by SoCs that support RAM control helper.

Signed-off-by: Nikodem Kastelik <[email protected]>
Updated retained_mem driver variant exposes vendor-specific API,
rather than executing implicitly during boot.

Signed-off-by: Nikodem Kastelik <[email protected]>
nordicjm
nordicjm previously approved these changes Nov 29, 2024
@nika-nordic nika-nordic added the DNM This PR should not be merged (Do Not Merge) label Nov 29, 2024
@nika-nordic
Copy link
Collaborator Author

Adding DNM for now until downstream tests finalize

RAM retention is disabled for all RAM blocks
before entering System OFF to achieve lowest power consumption.
RAM retention can still be enabled using retained_mem driver.

Signed-off-by: Nikodem Kastelik <[email protected]>
Using bare-metal approach for retention configuration
is no longer compatible with sys_poweroff() implementation.

Signed-off-by: Nikodem Kastelik <[email protected]>
@nika-nordic nika-nordic force-pushed the add_nrf_ram_retention_zephyrupstream branch from d7eec5f to 80a7fe7 Compare November 29, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Retained Memory area: Samples Samples DNM This PR should not be merged (Do Not Merge) platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants