Commit ace8207f authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Fabio Baltieri
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: default avatarDaniel DeGrasse <ddegrasse@tenstorrent.com>
parent 207211a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
CONFIG_USE_DT_CODE_PARTITION=y
+53 −0
Original line number Diff line number Diff line
/*
 * 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))>;
	};

};

/* Reduce size of slot 0 to match slot 1 */
&slot0_partition {
	reg = <0x40000 0x300000>;
};
+1 −0
Original line number Diff line number Diff line
@@ -182,6 +182,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: