feat: add sdkconfig defaults, partition table, and global config
16MB flash with custom partitions (2x2MB OTA + 12MB SPIFFS), PSRAM/WiFi/TLS tuning, and centralized compile-time constants. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1 +1,39 @@
|
||||
# MimiClaw - ESP32-S3 Target Configuration
|
||||
CONFIG_IDF_TARGET="esp32s3"
|
||||
|
||||
# Flash 16MB + QIO
|
||||
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
||||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
|
||||
|
||||
# CPU 240MHz
|
||||
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
|
||||
|
||||
# PSRAM 8MB Octal
|
||||
CONFIG_SPIRAM=y
|
||||
CONFIG_SPIRAM_MODE_OCT=y
|
||||
CONFIG_SPIRAM_SPEED_80M=y
|
||||
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=2048
|
||||
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=98304
|
||||
CONFIG_SPIRAM_MEMTEST=n
|
||||
|
||||
# WiFi memory optimization
|
||||
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=3
|
||||
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=6
|
||||
CONFIG_ESP_WIFI_RX_BA_WIN=3
|
||||
CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=16
|
||||
|
||||
# TLS optimization (PSRAM allocation + small buffers)
|
||||
CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y
|
||||
CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
|
||||
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=4096
|
||||
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096
|
||||
|
||||
# WebSocket support
|
||||
CONFIG_HTTPD_WS_SUPPORT=y
|
||||
|
||||
# Custom partition table
|
||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||
|
||||
# Console/UART for CLI
|
||||
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
||||
|
||||
Reference in New Issue
Block a user