Commit e1613ee1 authored by Johann Fischer's avatar Johann Fischer Committed by Chris Friedt
Browse files

tests: mcuboot_recovery_retention: use UARTE1 for device management

The test requires two UARTs: one for console output and one for device
management. Use UART1 for device management instead of CDC ACM because
the legacy stack is deprecated and it will take some time for MCUboot to
adapt.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 1c0a4ca6
Loading
Loading
Loading
Loading
+2 −6
Changes for tests/boot/mcuboot_recovery_retention/boards/nrf52840dk_nrf52840.overlay: 2 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -2,16 +2,12 @@

/ {
	chosen {
		zephyr,uart-mcumgr = &cdc_acm_uart;
		zephyr,uart-mcumgr = &uart1;
	};
};

&zephyr_udc0 {
&uart1 {
	status = "okay";

	cdc_acm_uart: cdc_acm_uart {
		compatible = "zephyr,cdc-acm-uart";
	};
};

/delete-node/ &boot_partition;
+2 −6
Changes for tests/boot/mcuboot_recovery_retention/boards/nrf52840dk_nrf52840_mem.overlay: 2 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -26,16 +26,12 @@

	chosen {
		zephyr,boot-mode = &boot_mode0;
		zephyr,uart-mcumgr = &cdc_acm_uart;
		zephyr,uart-mcumgr = &uart1;
	};
};

&zephyr_udc0 {
&uart1 {
	status = "okay";

	cdc_acm_uart: cdc_acm_uart {
		compatible = "zephyr,cdc-acm-uart";
	};
};

/delete-node/ &gpregret1;
+2 −4
Changes for tests/boot/mcuboot_recovery_retention/sysbuild/mcuboot/boards/nrf52840dk_nrf52840.overlay: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -7,8 +7,6 @@
	};
};

&zephyr_udc0 {
	cdc_acm_uart0 {
		compatible = "zephyr,cdc-acm-uart";
	};
&uart1 {
	status = "okay";
};
+3 −4
Changes for tests/boot/mcuboot_recovery_retention/sysbuild/mcuboot/boards/nrf52840dk_nrf52840_mem.overlay: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -4,11 +4,10 @@
/ {
	chosen {
		zephyr,code-partition = &boot_partition;
		zephyr,uart-mcumgr = &uart1;
	};
};

&zephyr_udc0 {
	cdc_acm_uart0 {
		compatible = "zephyr,cdc-acm-uart";
	};
&uart1 {
	status = "okay";
};
+2 −1
Changes for tests/boot/mcuboot_recovery_retention/sysbuild/mcuboot/prj.conf: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
CONFIG_MCUBOOT_SERIAL=y
CONFIG_BOOT_SERIAL_CDC_ACM=y
CONFIG_BOOT_SERIAL_UART=y
CONFIG_BOOT_SERIAL_ENTRANCE_GPIO=n
CONFIG_BOOT_SERIAL_BOOT_MODE=y
CONFIG_RETAINED_MEM=y
@@ -9,3 +9,4 @@ CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_LOG=y
CONFIG_MCUBOOT_ACTION_HOOKS=y
CONFIG_MULTITHREADING=y