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

Single app ram load fixes #2241

Merged
merged 2 commits into from
Mar 31, 2025

Conversation

edersondisouza
Copy link
Contributor

Two fixes, basically:

  • Fix RAM load code and sample that become broken since 1b2fc09;
  • Use right define for RAM loading on boot/zephyr.

Since 1b2fc09, many places now reuse
the flash area pointer from the bootloader state. Unfortunately, some
RAM load usage (on single loader or runtime-source sample) didn't set up
the flash area pointer on the bootloader state, so they were broken.

This patch fixes that by adding the flash area pointer to the created
bootloader states - directly or via a new parameter to
boot_load_image_from_flash_to_sram().

Signed-off-by: Ederson de Souza <[email protected]>
This will encompass both CONFIG_BOOT_RAM_LOAD and
CONFIG_SINGLE_APPLICATION_SLOT_RAM_LOAD, which, at this point, should
follow the same code path - load image to RAM.

Signed-off-by: Ederson de Souza <[email protected]>
@nordicjm nordicjm added this to the Release 2.2.0 milestone Mar 28, 2025
@nordicjm nordicjm merged commit 881608e into mcu-tools:main Mar 31, 2025
58 checks passed
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.

2 participants