Skip to content

Commit bdb7d7f

Browse files
MarekPietambolivar-nordic
authored andcommitted
[nrf fromlist] zephyr: Add MCUboot configuration for Thingy:53
Upstream PR: mcu-tools/mcuboot#1122 Change introduces default configuration of MCUboot for Thingy:53 secure cpuapp. The default configuration also disables image revert on application core. Signed-off-by: Marek Pieta <[email protected]> (cherry picked from commit bad6084)
1 parent 01f492b commit bdb7d7f

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
CONFIG_SIZE_OPTIMIZATIONS=y
2+
3+
CONFIG_SYSTEM_CLOCK_DISABLE=y
4+
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
5+
CONFIG_PM=n
6+
7+
CONFIG_MAIN_STACK_SIZE=10240
8+
CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"
9+
10+
CONFIG_BOOT_UPGRADE_ONLY=y
11+
CONFIG_BOOT_MAX_IMG_SECTORS=2048
12+
CONFIG_BOOT_SIGNATURE_TYPE_RSA=y
13+
14+
# Flash
15+
CONFIG_FLASH=y
16+
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
17+
CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y
18+
CONFIG_FPROTECT=n
19+
20+
# Serial
21+
CONFIG_SERIAL=y
22+
CONFIG_UART_LINE_CTRL=y
23+
24+
# MCUBoot serial
25+
CONFIG_GPIO=y
26+
CONFIG_MCUBOOT_SERIAL=y
27+
CONFIG_BOOT_SERIAL_CDC_ACM=y
28+
CONFIG_BOOT_SERIAL_DETECT_PORT="GPIO_1"
29+
CONFIG_BOOT_SERIAL_DETECT_PIN=13
30+
31+
# Required by QSPI
32+
CONFIG_NORDIC_QSPI_NOR=y
33+
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
34+
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16
35+
36+
CONFIG_PM_EXTERNAL_FLASH=y
37+
CONFIG_PM_EXTERNAL_FLASH_DEV_NAME="MX25R64"
38+
CONFIG_PM_EXTERNAL_FLASH_BASE=0x0
39+
CONFIG_PM_EXTERNAL_FLASH_SIZE=0x800000
40+
41+
# Required by USB and QSPI
42+
CONFIG_MULTITHREADING=y
43+
44+
# USB
45+
CONFIG_USB=y
46+
CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA"
47+
CONFIG_USB_DEVICE_PRODUCT="Bootloader Thingy:53"
48+
CONFIG_USB_DEVICE_VID=0x1915
49+
CONFIG_USB_DEVICE_PID=0x5300
50+
CONFIG_USB_CDC_ACM=y
51+
52+
# Decrease memory footprint
53+
CONFIG_CBPRINTF_NANO=y
54+
CONFIG_TIMESLICING=n
55+
CONFIG_BOOT_BANNER=n
56+
CONFIG_CONSOLE=n
57+
CONFIG_CONSOLE_HANDLER=n
58+
CONFIG_UART_CONSOLE=n
59+
CONFIG_USE_SEGGER_RTT=n
60+
CONFIG_LOG=n
61+
CONFIG_ERRNO=n
62+
CONFIG_PRINTK=n
63+
CONFIG_RESET_ON_FATAL_ERROR=n
64+
CONFIG_SPI=n
65+
CONFIG_I2C=n
66+
CONFIG_UART_NRFX=n

0 commit comments

Comments
 (0)