From 7abf9e3fddc16d31843356817e6606f75ad87728 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Wed, 15 Jul 2026 14:43:55 +0200 Subject: [PATCH] Record the esp-hosted PSRAM-mempool famine dead-end MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comment-only. Moving the esp-hosted transport buffers off PSRAM (MEMPOOL_PREFER_SPIRAM=n), to keep the radio's SDIO DMA off the DSI's bus and stop it starving the framebuffer read, was tried against the flicker — but it exhausts internal RAM and boot-loops in esp-hosted init before Wi-Fi comes up. Documented so it isn't retried; the setting stays =y. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01LKPbR6DY2JygHbyLjxm7Uu --- firmware/sdkconfig.defaults | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/sdkconfig.defaults b/firmware/sdkconfig.defaults index 353c15e..41ceda2 100644 --- a/firmware/sdkconfig.defaults +++ b/firmware/sdkconfig.defaults @@ -48,7 +48,10 @@ CONFIG_WIFI_RMT_RX_BA_WIN=16 # hosted task stacks MUST stay in internal RAM (PSRAM stacks assert on P4) CONFIG_ESP_HOSTED_DFLT_TASK_FROM_SPIRAM=n -# hosted 2.x: keep internal RAM for task stacks; buffers go to PSRAM +# hosted 2.x: keep internal RAM for task stacks; buffers go to PSRAM. +# NOTE: tried MEMPOOL_PREFER_SPIRAM=n (buffers -> internal RAM) to keep esp-hosted's +# SDIO DMA off the PSRAM bus and stop it starving the DSI FIFO — but it exhausts +# internal RAM and boot-loops (crashes in esp-hosted init before Wi-Fi). Must stay =y. CONFIG_ESP_HOSTED_MEMPOOL_PREFER_SPIRAM=y # conservative SDIO clock for first data-path proof (raise after verification) CONFIG_ESP_HOSTED_SDIO_CLOCK_FREQ_KHZ=20000