77# ESP32-C6/-C5 companion radio over SDIO, configured via `esp32_hosted:` below.
88# NOTE — P4 PSRAM is HEX mode only; the only valid speeds are 20 / 100 / 200 MHz.
99# Default is 200MHz, which runs fine on the Function-EV-Board and typical P4
10- # modules. If YOUR specific board crash-loops at boot with
11- # `esp_task_stack_is_sane_cache_disabled`, its PSRAM chip doesn't tolerate these
12- # settings — drop to `speed: 100MHz` or `20MHz`, or remove the psram: block to
13- # run without PSRAM. That's a per-board PSRAM/board-definition mismatch, not the
14- # speed being universally wrong (see discussion #31).
10+ # modules.
11+ #
12+ # IMPORTANT — the P4 needs `execute_from_psram: true` (below, under
13+ # framework.advanced) to boot reliably with PSRAM. Without it, some P4 boards
14+ # crash-loop at boot with `esp_task_stack_is_sane_cache_disabled`: a
15+ # PSRAM-resident task stack becomes unreachable during the flash cache-disable
16+ # window. `execute_from_psram` maps to ESP-IDF's XIP-from-PSRAM, which keeps
17+ # PSRAM accessible through those windows and fixes the crash (discussion #31).
18+ # If a board STILL crash-loops with the flag set, drop to `speed: 100MHz` or
19+ # `20MHz`, or remove the psram: block to run without PSRAM.
1520
1621esphome :
1722 name : tigo-server
@@ -32,6 +37,11 @@ esp32:
3237 # P4's experimental-features gate. Harmless, and matches the known-good
3338 # TigoMonitorP4 config; some IDF/board combos want it for PSRAM.
3439 enable_idf_experimental_features : yes
40+ # Execute code in-place from PSRAM (XIP). Required on the P4 so
41+ # PSRAM-resident task stacks stay reachable during flash cache-disable
42+ # windows — without it some boards crash-loop at boot with
43+ # `esp_task_stack_is_sane_cache_disabled` (discussion #31).
44+ execute_from_psram : true
3545 components :
3646 # esp_tsdb backs the History view; littlefs is its filesystem. The P4
3747 # target still needs the RAR/esp_tsdb fork (upstream 2.1.0's manifest
6474 CONFIG_LWIP_MAX_LISTENING_TCP : " 16"
6575
6676# Enable PSRAM. P4 is hex-mode only; valid speeds are 20 / 100 / 200 MHz.
67- # If your board crash-loops at boot, drop to 100MHz or 20MHz, or remove this block.
77+ # Needs execute_from_psram: true (above) to boot reliably. If your board still
78+ # crash-loops at boot, drop to 100MHz or 20MHz, or remove this block.
6879psram :
6980 mode : hex
7081 speed : 200MHz
0 commit comments