1# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD 2# 3# SPDX-License-Identifier: Apache-2.0 4 5CONFIG_ESP_FLASH_SIZE=4MB 6CONFIG_ESP_BOOTLOADER_SIZE=0xF000 7CONFIG_ESP_BOOTLOADER_OFFSET=0x0000 8CONFIG_ESP_IMAGE0_PRIMARY_START_ADDRESS=0x10000 9CONFIG_ESP_APPLICATION_SIZE=0x100000 10CONFIG_ESP_IMAGE0_SECONDARY_START_ADDRESS=0x110000 11CONFIG_ESP_MCUBOOT_WDT_ENABLE=y 12CONFIG_ESP_SCRATCH_OFFSET=0x210000 13CONFIG_ESP_SCRATCH_SIZE=0x40000 14 15# When enabled, prevents updating image to an older version 16# CONFIG_ESP_DOWNGRADE_PREVENTION=y 17# This option makes downgrade prevention rely also on security 18# counter (defined using imgtool) instead of only image version 19# CONFIG_ESP_DOWNGRADE_PREVENTION_SECURITY_COUNTER=y 20 21# Enables the MCUboot Serial Recovery, that allows the use of 22# MCUMGR to upload a firmware through the serial port 23# CONFIG_ESP_MCUBOOT_SERIAL=y 24# Use Serial through USB JTAG Serial port for Serial Recovery 25# CONFIG_ESP_MCUBOOT_SERIAL_USB_SERIAL_JTAG=y 26# Use sector erasing (recommended) instead of entire image size 27# erasing when uploading through Serial Recovery 28# CONFIG_ESP_MCUBOOT_ERASE_PROGRESSIVELY=y 29 30# GPIO used to boot on Serial Recovery 31# CONFIG_ESP_SERIAL_BOOT_GPIO_DETECT=5 32# GPIO input type (0 for Pull-down, 1 for Pull-up) 33# CONFIG_ESP_SERIAL_BOOT_GPIO_INPUT_TYPE=0 34# GPIO signal value 35# CONFIG_ESP_SERIAL_BOOT_GPIO_DETECT_VAL=1 36# Delay time for identify the GPIO signal 37# CONFIG_ESP_SERIAL_BOOT_DETECT_DELAY_S=5 38# UART port used for serial communication (not needed when using USB) 39# CONFIG_ESP_SERIAL_BOOT_UART_NUM=1 40# GPIO for Serial RX signal 41# CONFIG_ESP_SERIAL_BOOT_GPIO_RX=8 42# GPIO for Serial TX signal 43# CONFIG_ESP_SERIAL_BOOT_GPIO_TX=9 44 45# Use UART0 for console printing (use either UART or USB alone) 46CONFIG_ESP_CONSOLE_UART=y 47CONFIG_ESP_CONSOLE_UART_NUM=0 48# Configures alternative UART port for console printing 49# (UART_NUM=0 must not be changed) 50# CONFIG_ESP_CONSOLE_UART_CUSTOM=y 51# CONFIG_ESP_CONSOLE_UART_TX_GPIO=9 52# CONFIG_ESP_CONSOLE_UART_RX_GPIO=8 53# Use USB JTAG Serial for console printing 54# CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y 55 56# CONFIG_ESP_SIGN_EC256=y 57# CONFIG_ESP_SIGN_ED25519=n 58# CONFIG_ESP_SIGN_RSA=n 59# CONFIG_ESP_SIGN_RSA_LEN=2048 60 61# Use Tinycrypt lib for EC256 or ED25519 signing 62# CONFIG_ESP_USE_TINYCRYPT=y 63# Use Mbed TLS lib for RSA image signing 64# CONFIG_ESP_USE_MBEDTLS=n 65 66# It is strongly recommended to generate a new signing key 67# using imgtool instead of use the existent sample 68# CONFIG_ESP_SIGN_KEY_FILE=root-ec-p256.pem 69 70# Hardware Secure Boot related options 71# CONFIG_SECURE_SIGNED_ON_BOOT=1 72# CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME=1 73# CONFIG_SECURE_BOOT=1 74# CONFIG_SECURE_BOOT_V2_ENABLED=1 75# CONFIG_SECURE_BOOT_SUPPORTS_RSA=1 76 77# Hardware Flash Encryption related options 78# CONFIG_SECURE_FLASH_ENC_ENABLED=1 79# CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_ENC=1 80# CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_DEC=1 81# CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_CACHE=1 82# CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT=1 83# CONFIG_SECURE_BOOT_ALLOW_JTAG=1 84# CONFIG_SECURE_BOOT_ALLOW_ROM_BASIC=1 85 86# Options for enabling eFuse emulation in Flash 87# CONFIG_EFUSE_VIRTUAL=1 88# CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH=1 89