Commit 16470adf authored by Andrej Butok's avatar Andrej Butok Committed by Carles Cufi
Browse files

boards: frdm_mcxn947: Fix MCUBoot support.



- Set MCUBoot "upgrade only" method,
  as the program size is 128B (>32B).
- Set slot sizes to the same value,
  required by the MCUBoot "upgrade only" method.

Signed-off-by: default avatarAndrej Butok <andrey.butok@nxp.com>
parent 282ba588
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -14,4 +14,11 @@ config MAIN_STACK_SIZE

endif

if BOOTLOADER_MCUBOOT
choice MCUBOOT_BOOTLOADER_MODE
	# Board only supports MCUBoot via "upgrade only" method:
	default MCUBOOT_BOOTLOADER_MODE_OVERWRITE_ONLY
endchoice
endif #BOOTLOADER_MCUBOOT

endif
+4 −4
Original line number Diff line number Diff line
@@ -96,16 +96,16 @@
			label = "mcuboot";
			reg = <0x00000000 DT_SIZE_K(64)>;
		};
		/* Note slot 0 has one additional sector,
		 * this is intended for use with the swap move algorithm
		/* For the MCUBoot "upgrade only" method,
		 * the slot sizes must be equal.
		 */
		slot0_partition: partition@10000 {
			label = "image-0";
			reg = <0x00010000 DT_SIZE_K(992)>;
		};
		slot1_partition: partition@100000 {
		slot1_partition: partition@108000 {
			label = "image-1";
			reg = <0x00108000 DT_SIZE_K(984)>;
			reg = <0x00108000 DT_SIZE_K(992)>;
		};
		/* storage_partition is placed in WINBOND flash memory*/
	};