|
| 1 | +CONFIG_SIZE_OPTIMIZATIONS=y |
| 2 | + |
| 3 | +CONFIG_SYSTEM_CLOCK_NO_WAIT=y |
| 4 | +CONFIG_PM=n |
| 5 | + |
| 6 | +CONFIG_MAIN_STACK_SIZE=10240 |
| 7 | +CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h" |
| 8 | + |
| 9 | +CONFIG_BOOT_MAX_IMG_SECTORS=2048 |
| 10 | +CONFIG_BOOT_SIGNATURE_TYPE_RSA=y |
| 11 | + |
| 12 | +# Flash |
| 13 | +CONFIG_FLASH=y |
| 14 | +CONFIG_BOOT_ERASE_PROGRESSIVELY=y |
| 15 | +CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y |
| 16 | +CONFIG_FPROTECT=y |
| 17 | + |
| 18 | +# Serial |
| 19 | +CONFIG_SERIAL=y |
| 20 | +CONFIG_UART_LINE_CTRL=y |
| 21 | + |
| 22 | +# MCUBoot serial |
| 23 | +CONFIG_GPIO=y |
| 24 | +CONFIG_MCUBOOT_SERIAL=y |
| 25 | +CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y |
| 26 | +CONFIG_BOOT_SERIAL_CDC_ACM=y |
| 27 | + |
| 28 | +# Required by QSPI |
| 29 | +CONFIG_NORDIC_QSPI_NOR=y |
| 30 | +CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 |
| 31 | +CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16 |
| 32 | + |
| 33 | +# Required by USB and QSPI |
| 34 | +CONFIG_MULTITHREADING=y |
| 35 | + |
| 36 | +# USB |
| 37 | +CONFIG_USB_DEVICE_REMOTE_WAKEUP=n |
| 38 | +CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA" |
| 39 | +CONFIG_USB_DEVICE_PRODUCT="Bootloader Thingy:53" |
| 40 | +CONFIG_USB_DEVICE_VID=0x1915 |
| 41 | +CONFIG_USB_DEVICE_PID=0x5300 |
| 42 | +CONFIG_USB_CDC_ACM=y |
| 43 | + |
| 44 | +# Decrease memory footprint |
| 45 | +CONFIG_CBPRINTF_NANO=y |
| 46 | +CONFIG_TIMESLICING=n |
| 47 | +CONFIG_BOOT_BANNER=n |
| 48 | +CONFIG_CONSOLE=n |
| 49 | +CONFIG_CONSOLE_HANDLER=n |
| 50 | +CONFIG_UART_CONSOLE=n |
| 51 | +CONFIG_USE_SEGGER_RTT=n |
| 52 | +CONFIG_LOG=n |
| 53 | +CONFIG_ERRNO=n |
| 54 | +CONFIG_PRINTK=n |
| 55 | +CONFIG_RESET_ON_FATAL_ERROR=n |
| 56 | +CONFIG_SPI=n |
| 57 | +CONFIG_I2C=n |
| 58 | +CONFIG_UART_NRFX=n |
| 59 | + |
| 60 | +# The following configurations are required to support simultaneous multi image update |
| 61 | +CONFIG_PCD_APP=y |
| 62 | +CONFIG_UPDATEABLE_IMAGE_NUMBER=2 |
| 63 | +CONFIG_BOOT_UPGRADE_ONLY=y |
| 64 | +# The network core cannot access external flash directly. The flash simulator must be used to |
| 65 | +# provide a memory region that is used to forward the new firmware to the network core. |
| 66 | +CONFIG_FLASH_SIMULATOR=y |
| 67 | +CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y |
| 68 | +CONFIG_FLASH_SIMULATOR_STATS=n |
| 69 | + |
| 70 | +# Enable custom command to erase settings partition. |
| 71 | +CONFIG_ENABLE_MGMT_PERUSER=y |
| 72 | +CONFIG_BOOT_MGMT_CUSTOM_STORAGE_ERASE=y |
0 commit comments