Skip to content

Commit e1613ee

Browse files
jfischer-nocfriedt
authored andcommitted
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: Johann Fischer <[email protected]>
1 parent 1c0a4ca commit e1613ee

File tree

5 files changed

+11
-21
lines changed

5 files changed

+11
-21
lines changed

tests/boot/mcuboot_recovery_retention/boards/nrf52840dk_nrf52840.overlay

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22

33
/ {
44
chosen {
5-
zephyr,uart-mcumgr = &cdc_acm_uart;
5+
zephyr,uart-mcumgr = &uart1;
66
};
77
};
88

9-
&zephyr_udc0 {
9+
&uart1 {
1010
status = "okay";
11-
12-
cdc_acm_uart: cdc_acm_uart {
13-
compatible = "zephyr,cdc-acm-uart";
14-
};
1511
};
1612

1713
/delete-node/ &boot_partition;

tests/boot/mcuboot_recovery_retention/boards/nrf52840dk_nrf52840_mem.overlay

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@
2626

2727
chosen {
2828
zephyr,boot-mode = &boot_mode0;
29-
zephyr,uart-mcumgr = &cdc_acm_uart;
29+
zephyr,uart-mcumgr = &uart1;
3030
};
3131
};
3232

33-
&zephyr_udc0 {
33+
&uart1 {
3434
status = "okay";
35-
36-
cdc_acm_uart: cdc_acm_uart {
37-
compatible = "zephyr,cdc-acm-uart";
38-
};
3935
};
4036

4137
/delete-node/ &gpregret1;

tests/boot/mcuboot_recovery_retention/sysbuild/mcuboot/boards/nrf52840dk_nrf52840.overlay

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
};
88
};
99

10-
&zephyr_udc0 {
11-
cdc_acm_uart0 {
12-
compatible = "zephyr,cdc-acm-uart";
13-
};
10+
&uart1 {
11+
status = "okay";
1412
};

tests/boot/mcuboot_recovery_retention/sysbuild/mcuboot/boards/nrf52840dk_nrf52840_mem.overlay

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
/ {
55
chosen {
66
zephyr,code-partition = &boot_partition;
7+
zephyr,uart-mcumgr = &uart1;
78
};
89
};
910

10-
&zephyr_udc0 {
11-
cdc_acm_uart0 {
12-
compatible = "zephyr,cdc-acm-uart";
13-
};
11+
&uart1 {
12+
status = "okay";
1413
};

tests/boot/mcuboot_recovery_retention/sysbuild/mcuboot/prj.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CONFIG_MCUBOOT_SERIAL=y
2-
CONFIG_BOOT_SERIAL_CDC_ACM=y
2+
CONFIG_BOOT_SERIAL_UART=y
33
CONFIG_BOOT_SERIAL_ENTRANCE_GPIO=n
44
CONFIG_BOOT_SERIAL_BOOT_MODE=y
55
CONFIG_RETAINED_MEM=y
@@ -9,3 +9,4 @@ CONFIG_FLASH=y
99
CONFIG_FLASH_MAP=y
1010
CONFIG_LOG=y
1111
CONFIG_MCUBOOT_ACTION_HOOKS=y
12+
CONFIG_MULTITHREADING=y

0 commit comments

Comments
 (0)