From f69d195e2a5ad666edbc105cfd57ea130f4722a3 Mon Sep 17 00:00:00 2001 From: Julian Cuni Date: Sun, 27 Sep 2026 17:45:40 +0200 Subject: [PATCH] display-xip: rebuild core with XIP_FROM_PSRAM + LCD_RGB_ISR_IRAM_SAFE; drop unused IDF components --- .gitignore | 6 ++++++ platformio.ini | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/.gitignore b/.gitignore index 54409ed..d606045 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,9 @@ Thumbs.db ESP32-S3-Touch-LCD-5-Demo/ # Excel lock/temp files (created while a spreadsheet is open) ~$* + +# pioarduino custom_sdkconfig build artefacts (regenerated on every core rebuild) +.dummy/ +managed_components/ +sdkconfig.defaults +sdkconfig.waveshare_esp32_s3_lcd_5b diff --git a/platformio.ini b/platformio.ini index 32ead92..979f1c4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -52,6 +52,41 @@ lib_deps = ; Also compile the LVGL port that lives under include/display build_src_filter = +<*> + +<../include/display/*> +; ---- Display experiment (branch display-xip, wiki open-questions #13 step 3) ---- +; Rebuilds the Arduino core with these sdkconfig changes (pioarduino custom_sdkconfig): +; - XIP_FROM_PSRAM: code + rodata execute from PSRAM, so flash writes (NVS, OTA) +; no longer stall everything that touches PSRAM (the LCD framebuffer refill). +; - LCD_RGB_ISR_IRAM_SAFE: the bounce-buffer refill interrupt keeps running while +; the flash cache is disabled. +; Components not used by this firmware, dropped from the core rebuild. RainMaker / +; Insights also try to embed a https_server.crt that only exists in their own +; projects, which broke the first custom_sdkconfig build (2026-09-27). +custom_component_remove = + espressif/esp_rainmaker + espressif/rmaker_common + espressif/esp_insights + espressif/esp_diag_data_store + espressif/esp_diagnostics + espressif/cbor + espressif/qrcode + espressif/network_provisioning + espressif/esp-zboss-lib + espressif/esp-zigbee-lib + espressif/esp_hosted + espressif/esp_wifi_remote + espressif/esp-sr + espressif/esp-dsp + espressif/esp-modbus + espressif/libsodium + chmorgan/esp-libhelix-mp3 + espressif/esp32-camera + +custom_sdkconfig = + CONFIG_SPIRAM_XIP_FROM_PSRAM=y + CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y + CONFIG_SPIRAM_RODATA=y + CONFIG_LCD_RGB_ISR_IRAM_SAFE=y + build_flags = ; C++ standard (required for ESP32_Display_Panel) -std=gnu++17