Skip to content

Commit f67a11a

Browse files
maxd-nordicnordicjm
authored andcommitted
[nrf noup] boards: thingy91x: enable serial recovery
This patch disbales MCUBoot logging and enables serial recovery for the Thingy:91. Signed-off-by: Maximilian Deubel <[email protected]> Signed-off-by: Bernt Johan Damslora <[email protected]>
1 parent 3131c92 commit f67a11a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

boot/zephyr/boards/thingy91x_nrf5340_cpuapp.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ CONFIG_USB_COMPOSITE_DEVICE=y
3232
CONFIG_USB_MASS_STORAGE=n
3333
CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor"
3434
CONFIG_USB_DEVICE_VID=0x1915
35-
CONFIG_USB_DEVICE_PID=0x520F
35+
CONFIG_USB_DEVICE_PID=0x910A
3636

3737
CONFIG_BOOT_SERIAL_BOOT_MODE=y
3838

@@ -49,6 +49,12 @@ CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y
4949
CONFIG_FLASH_SIMULATOR_STATS=n
5050

5151
CONFIG_BOOT_IMAGE_ACCESS_HOOKS=y
52-
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y
5352

53+
# Makes it possible to update the network core using the flash simulator
5454
CONFIG_NRF53_RECOVERY_NETWORK_CORE=y
55+
56+
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y
57+
CONFIG_BOOT_SERIAL_IMG_GRP_IMAGE_STATE=y
58+
59+
# Skip checks on the secondary image to make it possible to update MCUBoot on S1/S0
60+
CONFIG_MCUBOOT_VERIFY_IMG_ADDRESS=n

boot/zephyr/boards/thingy91x_nrf9151.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ CONFIG_SPI_NOR=y
66
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
77
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
88
CONFIG_MULTITHREADING=y
9+
10+
# Disable Zephyr console and use UART for MCUboot serial recovery instead
11+
CONFIG_CONSOLE=n
12+
CONFIG_CONSOLE_HANDLER=n
13+
CONFIG_UART_CONSOLE=n
14+
CONFIG_MCUBOOT_SERIAL=y
15+
16+
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y
17+
CONFIG_BOOT_SERIAL_IMG_GRP_IMAGE_STATE=y

0 commit comments

Comments
 (0)