POST /ota writes the image to the idle app slot and reboots; GET /ota reports the running slot. App rollback is enabled, and a new image confirms itself after 10 s. Adds make ota HOST=<ip>, tools/ota.py and the led-tool --ota update. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
21 lines
782 B
Plaintext
21 lines
782 B
Plaintext
CONFIG_IDF_TARGET="esp32s3"
|
|
# XIAO ESP32S3 USB-C is wired to the native USB Serial/JTAG
|
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
|
CONFIG_ETH_USE_SPI_ETHERNET=y
|
|
CONFIG_ETH_SPI_ETHERNET_W5500=y
|
|
# XIAO ESP32S3 Plus: 16 MB flash and 8 MB octal PSRAM (ESP32-S3R8)
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
|
CONFIG_SPIRAM=y
|
|
CONFIG_SPIRAM_MODE_OCT=y
|
|
CONFIG_SPIRAM_SPEED_80M=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
|
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
|
|
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
|
CONFIG_FREERTOS_HZ=1000
|
|
CONFIG_ESP_WIFI_ESPNOW_MAX_ENCRYPT_NUM=7
|
|
CONFIG_ESPNOW_CHANNEL=5
|
|
CONFIG_BEAT_TEST_GPIO=4
|
|
# A new OTA image must confirm itself (ota_confirm_later) or the bootloader goes back to the old one
|
|
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
|