Skip to content

Conversation

@zycz
Copy link
Contributor

@zycz zycz commented Nov 24, 2025

This update introduces a new configuration option to automatically calculate the Load Memory Address (LMA) adjustment for firmware relocation. If the 'fw-to-relocate' chosen node exists, the firmware will load from the MRAM partition it points to and run from the specified TCM region. Otherwise, it defaults to the standard code-partition calculation.

@zycz
Copy link
Contributor Author

zycz commented Nov 24, 2025

Rebased

If 'fw-to-relocate' chosen node exists, the firmware will be loaded
from the MRAM partition it points to, but will run from the TCM region
specified by 'zephyr,code-partition'.
Otherwise, uses standard code-partition - sram calculation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"sram" could probably be uppercase, like other abbreviations?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are names so added " ' " symbol

This update introduces a new configuration option to automatically calculate
the Load Memory Address (LMA) adjustment for firmware relocation.
If the 'fw-to-relocate' chosen node exists, the firmware will load
from the MRAM partition it points to and run from the specified TCM region.
Otherwise, it defaults to the standard code-partition calculation.

Signed-off-by: Jan Zyczkowski <jan.zyczkowski@nordicsemi.no>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Nov 25, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#3526

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
config CODE_DATA_RELOCATION
default y if PM || POWEROFF

# Support for firmware relocation pattern (load from MRAM, run from TCM)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be beneficial to check if we can define it under nrf/soc/nordic/nrf54h

@zycz
Copy link
Contributor Author

zycz commented Nov 25, 2025

Will place this part in nrf repository - closing PR

@zycz zycz closed this Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants