zephyr: Add MCUboot configuration for Thingy:53
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 <Marek.Pieta@nordicsemi.no>
This commit is contained in:
parent
d2e87aa352
commit
1b1b4f9595
|
@ -0,0 +1,66 @@
|
|||
CONFIG_SIZE_OPTIMIZATIONS=y
|
||||
|
||||
CONFIG_SYSTEM_CLOCK_DISABLE=y
|
||||
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
|
||||
CONFIG_PM=n
|
||||
|
||||
CONFIG_MAIN_STACK_SIZE=10240
|
||||
CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"
|
||||
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=2048
|
||||
CONFIG_BOOT_SIGNATURE_TYPE_RSA=y
|
||||
|
||||
# Flash
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y
|
||||
CONFIG_FPROTECT=n
|
||||
|
||||
# Serial
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_LINE_CTRL=y
|
||||
|
||||
# MCUBoot serial
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_SERIAL_CDC_ACM=y
|
||||
CONFIG_BOOT_SERIAL_DETECT_PORT="GPIO_1"
|
||||
CONFIG_BOOT_SERIAL_DETECT_PIN=13
|
||||
|
||||
# Required by QSPI
|
||||
CONFIG_NORDIC_QSPI_NOR=y
|
||||
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16
|
||||
|
||||
CONFIG_PM_EXTERNAL_FLASH=y
|
||||
CONFIG_PM_EXTERNAL_FLASH_DEV_NAME="MX25R64"
|
||||
CONFIG_PM_EXTERNAL_FLASH_BASE=0x0
|
||||
CONFIG_PM_EXTERNAL_FLASH_SIZE=0x800000
|
||||
|
||||
# Required by USB and QSPI
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# USB
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA"
|
||||
CONFIG_USB_DEVICE_PRODUCT="Bootloader Thingy:53"
|
||||
CONFIG_USB_DEVICE_VID=0x1915
|
||||
CONFIG_USB_DEVICE_PID=0x5300
|
||||
CONFIG_USB_CDC_ACM=y
|
||||
|
||||
# Decrease memory footprint
|
||||
CONFIG_CBPRINTF_NANO=y
|
||||
CONFIG_TIMESLICING=n
|
||||
CONFIG_BOOT_BANNER=n
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_CONSOLE_HANDLER=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
CONFIG_USE_SEGGER_RTT=n
|
||||
CONFIG_LOG=n
|
||||
CONFIG_ERRNO=n
|
||||
CONFIG_PRINTK=n
|
||||
CONFIG_RESET_ON_FATAL_ERROR=n
|
||||
CONFIG_SPI=n
|
||||
CONFIG_I2C=n
|
||||
CONFIG_UART_NRFX=n
|
Loading…
Reference in New Issue