1- # Enable logging for MCUboot
1+ # MCUboot defaults (from bootloader/mcuboot/boot/zephyr/prj.conf)
2+ CONFIG_PM=n
3+ CONFIG_MAIN_STACK_SIZE=10240
4+ CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
5+ CONFIG_BOOT_ENCRYPT_IMAGE=n
6+ CONFIG_BOOT_UPGRADE_ONLY=n
7+ CONFIG_BOOT_BOOTSTRAP=n
8+ CONFIG_FLASH=y
9+ # CONFIG_BT is not set
10+ # CONFIG_I2C is not set
211CONFIG_LOG=y
3- CONFIG_MCUBOOT_LOG_LEVEL_WRN=y
12+ CONFIG_LOG_MODE_MINIMAL=y
13+ CONFIG_LOG_DEFAULT_LEVEL=0
14+ CONFIG_MCUBOOT_LOG_LEVEL_INF=y
15+ CONFIG_CBPRINTF_NANO=y
16+ CONFIG_PICOLIBC=y
17+ CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0
18+ CONFIG_NCS_APPLICATION_BOOT_BANNER_STRING="MCUboot"
419
520# Enable Serial Recovery over UART
621CONFIG_MCUBOOT_SERIAL=y
722
823# Disable console UART, since Serial Recovery uses UART
924CONFIG_UART_CONSOLE=n
1025
11- # Configure boolader to use two slots
26+ # Configure bootloader to use two slots
1227CONFIG_SINGLE_APPLICATION_SLOT=n
1328
1429# Turn on a LED so we can see when Serial Recovery mode is active
@@ -17,4 +32,12 @@ CONFIG_MCUBOOT_INDICATION_LED=y
1732# Step 1.1 - Configure serial recovery to use CDC_ACM, which by default uses the USB
1833CONFIG_BOOT_SERIAL_CDC_ACM=y
1934
20- CONFIG_FLASH=y
35+ # CONFIG_BOOT_MAX_IMG_SECTORS=256
36+
37+ # # Ensure that the SPI NOR driver is disabled by default
38+ # CONFIG_SPI_NOR=n
39+
40+ # # TODO: below are not yet supported and need fixing
41+ # CONFIG_FPROTECT=n
42+
43+ # CONFIG_BOOT_WATCHDOG_FEED=n
0 commit comments