Skip to content

Commit 7d2f5f2

Browse files
samples: subsys: mgmt: mcumgr: add support for ramload on mimxrt1050_evk
Add support for using the ramload mode of MCUBoot on the mimxrt1050_evk Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 69fb540 commit 7d2f5f2

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_USE_DT_CODE_PARTITION=y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright (c) 2025 Tenstorrent AI ULC
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Layout must match the hyperflash_ram_load overlay file within mcuboot
9+
* application configuration directory
10+
*/
11+
12+
/delete-node/ &sdram0;
13+
14+
/ {
15+
sram@80007F00 {
16+
compatible = "zephyr,memory-region", "mmio-sram";
17+
reg = <0x80007F00 0x100>;
18+
zephyr,memory-region = "RetainedMem";
19+
status = "okay";
20+
21+
retainedmem {
22+
compatible = "zephyr,retained-ram";
23+
status = "okay";
24+
#address-cells = <1>;
25+
#size-cells = <1>;
26+
27+
boot_info0: boot_info@0 {
28+
compatible = "zephyr,retention";
29+
status = "okay";
30+
reg = <0x0 0x100>;
31+
};
32+
};
33+
};
34+
35+
chosen {
36+
zephyr,bootloader-info = &boot_info0;
37+
zephyr,sram = &sdram_split;
38+
};
39+
40+
/*
41+
* Adjust sdram0 to reserve first 30KB for MCUBoot, and
42+
* remaining 2KB for retained memory
43+
*/
44+
sdram_split: sdram_split@80008000 {
45+
reg = <0x80008000 (0x2000000 - DT_SIZE_K(32))>;
46+
};
47+
48+
};

samples/subsys/mgmt/mcumgr/smp_svr/sample.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ tests:
177177
- EXTRA_CONF_FILE="overlay-serial.conf"
178178
platform_allow:
179179
- nrf52840dk/nrf52840
180+
- mimxrt1050_evk/mimxrt1052/hyperflash
180181
integration_platforms:
181182
- nrf52840dk/nrf52840
182183
sample.mcumgr.smp_svr.ram_load.serial.fs.shell:

0 commit comments

Comments
 (0)