Skip to content

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

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_USE_DT_CODE_PARTITION=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright (c) 2025 Tenstorrent AI ULC
*
* SPDX-License-Identifier: Apache-2.0
*/

/*
* Layout must match the hyperflash_ram_load overlay file within mcuboot
* application configuration directory
*/

/delete-node/ &sdram0;

/ {
sram@80007F00 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x80007F00 0x100>;
zephyr,memory-region = "RetainedMem";
status = "okay";

retainedmem {
compatible = "zephyr,retained-ram";
status = "okay";
#address-cells = <1>;
#size-cells = <1>;

boot_info0: boot_info@0 {
compatible = "zephyr,retention";
status = "okay";
reg = <0x0 0x100>;
};
};
};

chosen {
zephyr,bootloader-info = &boot_info0;
zephyr,sram = &sdram_split;
};

/*
* Adjust sdram0 to reserve first 30KB for MCUBoot, and
* remaining 2KB for retained memory
*/
sdram_split: sdram_split@80008000 {
reg = <0x80008000 (0x2000000 - DT_SIZE_K(32))>;
};

};
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
/delete-node/ &sram0;

#include "../sysbuild/nrf52840dk_nrf52840_mcuboot_ram_load.overlay"
/*
* Layout must match the nrf52840dk_nrf52840_ram_load overlay file within mcuboot
* application configuration directory
*/

/ {
sram@2003FF00 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2003FF00 0x100>;
zephyr,memory-region = "RetainedMem";
status = "okay";

retainedmem {
compatible = "zephyr,retained-ram";
status = "okay";
#address-cells = <1>;
#size-cells = <1>;

boot_info0: boot_info@0 {
compatible = "zephyr,retention";
status = "okay";
reg = <0x0 0x100>;
};
};
};

chosen {
zephyr,bootloader-info = &boot_info0;
};
};

/ {
chosen {
Expand Down
1 change: 1 addition & 0 deletions samples/subsys/mgmt/mcumgr/smp_svr/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ tests:
- EXTRA_CONF_FILE="overlay-serial.conf"
platform_allow:
- nrf52840dk/nrf52840
- mimxrt1050_evk/mimxrt1052/hyperflash
integration_platforms:
- nrf52840dk/nrf52840
sample.mcumgr.smp_svr.ram_load.serial.fs.shell:
Expand Down
4 changes: 0 additions & 4 deletions samples/subsys/mgmt/mcumgr/smp_svr/sysbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if("${FILE_SUFFIX}" STREQUAL "ram_load")
set(mcuboot_EXTRA_DTC_OVERLAY_FILE "${CMAKE_CURRENT_LIST_DIR}/nrf52840dk_nrf52840_mcuboot_ram_load.overlay" CACHE INTERNAL "" FORCE)
endif()

find_package(Sysbuild REQUIRED HINTS $ENV{ZEPHYR_BASE})

project(sysbuild LANGUAGES)

This file was deleted.

1 change: 1 addition & 0 deletions soc/nxp/common/Kconfig.flexspi_xip
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ config FLASH_SIZE
config FLASH_MCUX_FLEXSPI_XIP
bool
default $(DT_FLASH_PARENT_IS_FLEXSPI)
depends on !MCUBOOT_BOOTLOADER_MODE_RAM_LOAD
select XIP
help
Allows REfor the soc to safely initialize the clocks for the
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ manifest:
groups:
- crypto
- name: mcuboot
revision: 06747985eee7c27d891f2529c58e18f4a84ea6a3
revision: pull/123/head
path: bootloader/mcuboot
groups:
- bootloader
Expand Down
Loading