1.5 KiB · text History 9d79b3d
# Rust often needs a bit of an extra main task stack size compared to C (the default is 3K)
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8000

# The C6-DevKitC-1 on hand really has 4MB; the ESP-IDF default of 2MB also drags
# CONFIG_MMU_PAGE_SIZE down to 32KB, which makes our app image unbootable by
# espflash's bundled (64KB-page) bootloader. 4MB restores 64KB pages so a plain
# `cargo run` works without passing --bootloader.
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"

# OTA: an image installed over the air boots "unverified" and the bootloader
# reverts to the previous one on the next reset unless the app confirms itself
# (src/ota.rs, mark_running_slot_valid). This lives in the BOOTLOADER, so it
# only takes effect with our own bootloader flashed — espflash's bundled one
# knows nothing about it. See .cargo/config.toml's runner line.
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y

# TLS for the update fetch. Both are ESP-IDF defaults; pinned here so a later
# sdkconfig change cannot quietly leave the device with no root certificates,
# which fails as an obscure handshake error rather than as anything readable.
CONFIG_ESP_TLS_USING_MBEDTLS=y
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y

# Use this to set FreeRTOS kernel tick frequency to 1000 Hz (100 Hz by default).
# This allows to use 1 ms granuality for thread sleeps (10 ms by default).
#CONFIG_FREERTOS_HZ=1000

# Workaround for https://github.com/espressif/esp-idf/issues/7631
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=n
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=n