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

samples: subsys: mgmt: support ram load mode with MCUBoot sample on RT1050 EVK #85096

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

Conversation

danieldegrasse
Copy link
Collaborator

Add support for running MCUBoot in ram load mode with the RT1050 EVK when using the smp_svr sample. This requires some rework of the support for the nrf52840dk board within this sample, because the DTC overlay file for ram load mode was being hardcoded.

@zephyrbot
Copy link
Collaborator

zephyrbot commented Feb 3, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
mcuboot zephyrproject-rtos/mcuboot@0674798 zephyrproject-rtos/mcuboot#123 zephyrproject-rtos/mcuboot#123/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-mcuboot DNM This PR should not be merged (Do Not Merge) labels Feb 3, 2025
nordicjm
nordicjm previously approved these changes Feb 4, 2025
Copy link
Collaborator

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

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

PR OK, but would need MCUboot sync before

Comment on lines 9 to 11
sram@2003FC00 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2003FC00 DT_SIZE_K(1)>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
sram@2003FC00 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2003FC00 DT_SIZE_K(1)>;
sram@2003FF00 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2003FF00 0x100>;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Applied

@@ -166,6 +166,7 @@ tests:
integration_platforms:
- nrf52840dk/nrf52840
sample.mcumgr.smp_svr.ram_load:
sysbuild: true
Copy link
Contributor

Choose a reason for hiding this comment

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

It's already defined in the common section, no need to duplicate it.

common:
  sysbuild: true

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch- dropped this

@fabiobaltieri fabiobaltieri added DNM (manifest) This PR should not be merged (controlled by action-manifest) and removed DNM This PR should not be merged (Do Not Merge) labels Feb 4, 2025
MCUMgr ram load support was hardcoding the overlay file for the
nrf52840dk. To make this support generic, move the _ram_load overlay
file to the MCUBoot repository, as part of the mcuboot application.

Signed-off-by: Daniel DeGrasse <[email protected]>
MCUBoot RAMLOAD mode relies on CONFIG_XIP=n, but FLASH_MCUX_FLEXSPI_XIP
y-selects this symbol. Disable CONFIG_FLASH_MCUX_FLEXSPI_XIP for the
case where we are using MCUBoot ramload mode.

Signed-off-by: Daniel DeGrasse <[email protected]>
@danieldegrasse danieldegrasse force-pushed the feature/rt1050-mcuboot-ramload branch 2 times, most recently from 52cfb1d to ba6d537 Compare February 4, 2025 18:21
Add support for using the ramload mode of MCUBoot on the mimxrt1050_evk

Signed-off-by: Daniel DeGrasse <[email protected]>
@danieldegrasse danieldegrasse force-pushed the feature/rt1050-mcuboot-ramload branch from ba6d537 to 7d2f5f2 Compare February 4, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mcumgr area: Samples Samples DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-mcuboot platform: NXP NXP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants