Skip to content

Commit 5e26130

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 <ddegrasse@tenstorrent.com>
1 parent 30d0aae commit 5e26130

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_USE_DT_CODE_PARTITION=y
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
};
49+
50+
/* Reduce size of slot 0 to match slot 1 */
51+
&slot0_partition {
52+
reg = <0x40000 0x300000>;
53+
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ tests:
182182
- EXTRA_CONF_FILE="overlay-serial.conf"
183183
platform_allow:
184184
- nrf52840dk/nrf52840
185+
- mimxrt1050_evk/mimxrt1052/hyperflash
185186
integration_platforms:
186187
- nrf52840dk/nrf52840
187188
sample.mcumgr.smp_svr.ram_load.serial.fs.shell:

0 commit comments

Comments
 (0)