Skip to content

Commit 0a8bbbf

Browse files
committed
boot: zephyr: Fix USB configs
Fixes USB configurations so that they build out of the box, this previously falsely built successfully but would not run Signed-off-by: Jamie McCrae <[email protected]>
1 parent d5c963c commit 0a8bbbf

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

boot/zephyr/boards/nrf52840dongle_nrf52840.conf

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
# Disable logging.
44
CONFIG_LOG=n
55

6-
# The build won't fit on the partition allocated for it without size
7-
# optimizations.
8-
CONFIG_SIZE_OPTIMIZATIONS=y
9-
106
# Serial
7+
CONFIG_CONSOLE=n
118
CONFIG_SERIAL=y
12-
CONFIG_UART_NRFX=y
9+
CONFIG_UART_NRFX=n
1310
CONFIG_UART_INTERRUPT_DRIVEN=y
1411
CONFIG_UART_LINE_CTRL=y
1512

@@ -25,7 +22,5 @@ CONFIG_MULTITHREADING=y
2522
CONFIG_USB_DEVICE_STACK=y
2623
CONFIG_USB_DEVICE_REMOTE_WAKEUP=n
2724
CONFIG_USB_DEVICE_PRODUCT="MCUBOOT"
28-
CONFIG_USB_COMPOSITE_DEVICE=n
29-
CONFIG_USB_MASS_STORAGE=n
3025

3126
CONFIG_NORDIC_QSPI_NOR=n
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
CONFIG_LOG=y
22

3-
# The build won't fit on the partition allocated for it without size
4-
# optimizations.
5-
CONFIG_SIZE_OPTIMIZATIONS=y
6-
73
# Serial
4+
CONFIG_UART_CONSOLE=n
5+
CONFIG_CONSOLE=n
86
CONFIG_SERIAL=y
97
CONFIG_UART_LINE_CTRL=y
108

119
# MCUBoot serial
1210
CONFIG_MCUBOOT_SERIAL=y
1311
CONFIG_BOOT_SERIAL_CDC_ACM=y
14-
15-
CONFIG_LOG_BACKEND_UART=y
16-
CONFIG_LOG_BACKEND_RTT=n

0 commit comments

Comments
 (0)