e44efe13e0
Context: New firmware "Lisael Box" targeting the ESP32-S3-BOX-3 (8MB PSRAM, 16MB flash, LCD+touch, ES8311 codec, microSD). Establish the ESP-IDF 5.4/5.5 build skeleton before adding modules. Approach: Standard IDF project layout with a single big factory app (4MB) since the binary links the esp-box BSP, LVGL 9 and ESP-ADF. ESP-ADF is not a managed component, so the top-level CMake injects $ADF_PATH/components via EXTRA_COMPONENT_DIRS and warns clearly when ADF_PATH is unset. Changes: - top-level CMakeLists with ADF_PATH wiring - partitions.csv (16MB: factory 4MB + FAT storage) - sdkconfig.defaults (+ .esp32s3: octal PSRAM, 16MB, 240MHz, LVGL/PSRAM) - main/CMakeLists, idf_component.yml (esp-box-3 ^3.2, built-in json) - Kconfig.projbuild (Wi-Fi, weather lat/lon, child volume cap) - lisael_config.h shared constants, .gitignore Impact: Buildable skeleton; modules added in following commits. Not yet compiled (no IDF/ADF/board available) - see README.
35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
# Lisael Box — ESP32-S3-BOX-3 specific defaults.
|
|
# Applied automatically on top of sdkconfig.defaults when target == esp32s3.
|
|
|
|
# --- Flash: 16 MB on the BOX-3 ----------------------------------------------
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
|
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
|
|
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
|
|
|
|
# --- PSRAM: 8 MB octal SPI on the BOX-3 -------------------------------------
|
|
# Required for the LVGL framebuffer(s) and ESP-ADF ring buffers.
|
|
CONFIG_SPIRAM=y
|
|
CONFIG_SPIRAM_MODE_OCT=y
|
|
CONFIG_SPIRAM_SPEED_80M=y
|
|
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
|
|
CONFIG_SPIRAM_RODATA=y
|
|
# Let malloc() fall back to PSRAM for large allocations (LVGL buffers, decoders).
|
|
CONFIG_SPIRAM_USE_MALLOC=y
|
|
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=4096
|
|
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
|
|
|
|
# --- CPU ---------------------------------------------------------------------
|
|
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
|
|
|
|
# --- LVGL (esp_lvgl_port / lvgl 9) ------------------------------------------
|
|
# Use PSRAM for the LVGL draw buffers so the 320x240x16bpp framebuffer fits.
|
|
CONFIG_LV_MEM_CUSTOM=y
|
|
CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM=y
|
|
|
|
# --- Main task ---------------------------------------------------------------
|
|
# app_main runs BSP + LVGL bring-up; give it a comfortable stack.
|
|
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
|
|
|
|
# --- Audio: ESP-ADF decoders need a decent heap; keep DMA in internal RAM ---
|
|
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096
|