OTA: screen stays on with a progress bar and 'do not switch off' (flash writes no longer blank the panel under XIP); wiki step 4

This commit is contained in:
2026-09-27 18:00:33 +02:00
parent 26e61190f9
commit 990ba68590
7 changed files with 174 additions and 16 deletions
+4
View File
@@ -177,3 +177,7 @@ While preparing step 2 I found the panel library reads `ESP_PANEL_BOARD_LCD_RGB_
## [2026-09-27] verify | Step 3 (XIP from PSRAM + IRAM-safe RGB ISR): OTA no longer blanks the panel
Branch `display-xip`: pioarduino `custom_sdkconfig` with `CONFIG_SPIRAM_XIP_FROM_PSRAM`/`FETCH_INSTRUCTIONS`/`RODATA` and `CONFIG_LCD_RGB_ISR_IRAM_SAFE`. First core rebuild (20 min) failed at the end on RainMaker/Insights embedding `https_server.crt`; dropping the unused components with `custom_component_remove` fixed it (rebuild ~3 min after). Flashed COM14, then a scripted `ota install force` with `perf on 1` → [[perf-xip-ota-2026-09-27]]: **24–25 vsync/s, 41.5 ms gap for the entire 33 s download** (stock core an hour earlier: 4–8/s, 290–747 ms). Flash-write blanking is fixed `(verified)`; step 4 (progress bar with the screen on) is unblocked. PSRAM free 6.6 → 4.9 MB, internal 66 → 63 KB, first full redraw 142 ms (no slow-down seen). Generated IDF files git-ignored. Open: dots by eye on the XIP build, swipe-lag comparison, CI must rebuild the core. Updated [[open-questions]] #13, [[esp32-s3-touch-lcd-5b]], index.
## [2026-09-27] build | Step 4: OTA keeps the screen on with a progress bar (branch display-xip)
`ota_update.cpp`: the full-screen notice gained an LVGL bar + percent label + amber "Do not switch off the ignition"; the download loop updates it per percent under a 50 ms LVGL try-lock; the backlight off/on around `writeImage()` is gone. Settings texts updated (confirm dialog, Updates note). Second forced install under `perf` → [[perf-xip-ota-2026-09-27]]: 24–25 panel frames/s and a 41.5 ms gap for the whole download, bar redrawing 2–3×/s. User confirmed on the screen: progress bar visible, no flicker. [[ota-updates]] rewritten for the lit screen; [[open-questions]] #13 step 4 done. Left: dots verdict by eye on the XIP build, CI core rebuild, merge + v0.1.7.
+1 -1
View File
@@ -75,7 +75,7 @@ The research frontier. Answering any of these should trigger updates across the
**Decision 2026-09-27 (user): this is a must-fix, all steps through XIP, bench time is no constraint.** Two corrections to the record: (a) the flickering dots **still appear occasionally** on v0.1.6 — the scan policy reduced the trigger, it did not remove the weakness; (b) the dark screen during OTA is a **safety/UX defect**, not a mitigation: with no feedback a driver may switch the ignition off mid-update. Requirement: the screen stays on during an update with a visible progress bar and a "do not switch off" message — which needs Step B (flash writes must stop blanking the panel), plus an OTA progress callback on the Updates page. (The OTA design already survives a power cut — the new image is only confirmed after 30 s, else it rolls back — so the risk is a wasted update and a confused user, not a bricked board.)
**Plan agreed 2026-09-27 (next display session, bench + USB, `dev` builds only until verified):**
1. **Baseline first**: Settings → System → Performance overlay (LVGL's perf monitor = real render FPS + CPU; never measured before). Provoke each symptom on purpose: a Wi-Fi scan (dots), a Tuning edit that gets saved (flash write), an update (flash writes). Without numbers there is no telling whether a change helped. **Tooling landed 2026-09-27 `(repo)`**: the `perf` console command (`perf on 1` streams a `PERF,` CSV line per second: fps, ms/frame, flush ms/s, LVGL idle, core idle, heap). **Idle baseline, Driveline screen, bench/USB, v0.1.6+perf**: 9.7 fps rendered (= the screen's own update rate), 30 ms per frame avg (122 ms worst in the first window), ~40 kpx/frame, 52 ms/s copying into the PSRAM framebuffer, LVGL idle 68 %, core 0 idle 94 %, core 1 idle 66 %, internal 66.9 KB free / 31.7 KB largest, PSRAM 6.6 MB free. **Provoke session logged 2026-09-27 → [[perf-baseline-2026-09-27]]**: Driveline redraws ~10×/s with nothing changing (39 kpx, 30 ms, a third of core 1 — an unconditional `lv_label_set_text` every 100 ms `(repo)`); screen changes are single 140–330 ms frames (= the swipe lag; not a bounce-buffer matter); the Simulation tab is the heaviest normal load (2 Mpx/s, 26 % of the time writing PSRAM, LVGL idle 9 %); a flash write is invisible to the LVGL counters, so the monitor needs a **panel vsync/refresh counter** to see flicker and dots directly; the monitor is blind during OTA (ticks from the blocked `loop()`). Heap flat throughout (66–67 KB internal, 31.7 KB largest, 6.6 MB PSRAM). **Plan amended**: 1b = stop the Driveline redraw + add vsync counter + timer-driven PERF, re-baseline; step 2 judged on the Simulation tab and during a scan, by the refresh counter. **Step 1b done 2026-09-27 `(verified, bench)`**: Driveline `tick()` now writes labels/chips only on change → idle Driveline 0 fps, 0 ms/s PSRAM copies, LVGL idle 96 %, core 1 idle 96 % (was 9.7 fps / 52 ms/s / 68 % / 66 %). `perf` gained the panel counters: **~24 vsync/s, longest gap 41.5 ms when healthy** — a DMA restart must show as a gap ≥ 2 frames (≈ 83 ms). Reporting runs from an esp_timer, so OTA is no longer a blind spot. **Second session 2026-09-27 → [[perf-dots-and-ota-2026-09-27]]**: (a) with dots on screen and everything idle the panel refreshed perfectly (24/s, 41.5 ms) — **dots are sub-frame DMA data glitches, invisible to the vsync counter, judged by eye only; bounce buffers are the designed fix**; (b) during `ota install` the panel drops to **4–8 refreshes/s with 290–747 ms gaps** — flash writes blank it ~75 % of the time; **no progress bar is possible before step 3**; target 24/s + 41.5 ms during an install. Tuning save and `ota check` lost no frame. **Correction the same evening**: the panel library already runs **10-line bounce buffers** and a **21 MHz** clock (the `platformio.ini` flags saying otherwise were dead names) — so the dots are *late bounce refills* re-sending the previous 10-line chunk (the photo shows text pixels echoed below each line), and step 2 as written is moot. **Step 3 (`CONFIG_SPIRAM_XIP_FROM_PSRAM` + `CONFIG_LCD_RGB_ISR_IRAM_SAFE`, pioarduino `custom_sdkconfig`, branch `display-xip`) now targets both the dots and the OTA blanking.** Fallbacks if dots remain: lower pixel clock (18 MHz), larger bounce buffers, Wi-Fi/LWIP buffers back to internal RAM (`CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=n`, costs internal RAM). **Step 3 built and measured 2026-09-27 17:46 → [[perf-xip-ota-2026-09-27]]: during a full `ota install` the panel held 24–25 refreshes/s with a 41.5 ms gap (stock core: 4–8/s, 290–747 ms). The flash-write blanking is fixed `(verified)`; a progress bar during updates is now possible (step 4). PSRAM free 6.6 → 4.9 MB (code resident there); no render slow-down seen in the one full-redraw sample. Dots on the XIP build still to be judged by eye (Wi-Fi up, idle screen).**
1. **Baseline first**: Settings → System → Performance overlay (LVGL's perf monitor = real render FPS + CPU; never measured before). Provoke each symptom on purpose: a Wi-Fi scan (dots), a Tuning edit that gets saved (flash write), an update (flash writes). Without numbers there is no telling whether a change helped. **Tooling landed 2026-09-27 `(repo)`**: the `perf` console command (`perf on 1` streams a `PERF,` CSV line per second: fps, ms/frame, flush ms/s, LVGL idle, core idle, heap). **Idle baseline, Driveline screen, bench/USB, v0.1.6+perf**: 9.7 fps rendered (= the screen's own update rate), 30 ms per frame avg (122 ms worst in the first window), ~40 kpx/frame, 52 ms/s copying into the PSRAM framebuffer, LVGL idle 68 %, core 0 idle 94 %, core 1 idle 66 %, internal 66.9 KB free / 31.7 KB largest, PSRAM 6.6 MB free. **Provoke session logged 2026-09-27 → [[perf-baseline-2026-09-27]]**: Driveline redraws ~10×/s with nothing changing (39 kpx, 30 ms, a third of core 1 — an unconditional `lv_label_set_text` every 100 ms `(repo)`); screen changes are single 140–330 ms frames (= the swipe lag; not a bounce-buffer matter); the Simulation tab is the heaviest normal load (2 Mpx/s, 26 % of the time writing PSRAM, LVGL idle 9 %); a flash write is invisible to the LVGL counters, so the monitor needs a **panel vsync/refresh counter** to see flicker and dots directly; the monitor is blind during OTA (ticks from the blocked `loop()`). Heap flat throughout (66–67 KB internal, 31.7 KB largest, 6.6 MB PSRAM). **Plan amended**: 1b = stop the Driveline redraw + add vsync counter + timer-driven PERF, re-baseline; step 2 judged on the Simulation tab and during a scan, by the refresh counter. **Step 1b done 2026-09-27 `(verified, bench)`**: Driveline `tick()` now writes labels/chips only on change → idle Driveline 0 fps, 0 ms/s PSRAM copies, LVGL idle 96 %, core 1 idle 96 % (was 9.7 fps / 52 ms/s / 68 % / 66 %). `perf` gained the panel counters: **~24 vsync/s, longest gap 41.5 ms when healthy** — a DMA restart must show as a gap ≥ 2 frames (≈ 83 ms). Reporting runs from an esp_timer, so OTA is no longer a blind spot. **Second session 2026-09-27 → [[perf-dots-and-ota-2026-09-27]]**: (a) with dots on screen and everything idle the panel refreshed perfectly (24/s, 41.5 ms) — **dots are sub-frame DMA data glitches, invisible to the vsync counter, judged by eye only; bounce buffers are the designed fix**; (b) during `ota install` the panel drops to **4–8 refreshes/s with 290–747 ms gaps** — flash writes blank it ~75 % of the time; **no progress bar is possible before step 3**; target 24/s + 41.5 ms during an install. Tuning save and `ota check` lost no frame. **Correction the same evening**: the panel library already runs **10-line bounce buffers** and a **21 MHz** clock (the `platformio.ini` flags saying otherwise were dead names) — so the dots are *late bounce refills* re-sending the previous 10-line chunk (the photo shows text pixels echoed below each line), and step 2 as written is moot. **Step 3 (`CONFIG_SPIRAM_XIP_FROM_PSRAM` + `CONFIG_LCD_RGB_ISR_IRAM_SAFE`, pioarduino `custom_sdkconfig`, branch `display-xip`) now targets both the dots and the OTA blanking.** Fallbacks if dots remain: lower pixel clock (18 MHz), larger bounce buffers, Wi-Fi/LWIP buffers back to internal RAM (`CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=n`, costs internal RAM). **Step 3 built and measured 2026-09-27 17:46 → [[perf-xip-ota-2026-09-27]]: during a full `ota install` the panel held 24–25 refreshes/s with a 41.5 ms gap (stock core: 4–8/s, 290–747 ms). The flash-write blanking is fixed `(verified)`; a progress bar during updates is now possible (step 4). PSRAM free 6.6 → 4.9 MB (code resident there); no render slow-down seen in the one full-redraw sample. Dots on the XIP build still to be judged by eye (Wi-Fi up, idle screen).** **Step 4 done 2026-09-27**: the OTA notice keeps the screen on with a progress bar and "Do not switch off the ignition"; second forced install under `perf`: 24–25 frames/s, 41.5 ms gap throughout, bar redrawing 2–3×/s; user: "the progress bar appeared and no flickering or other issues" `(verified)`. Remaining before merging `display-xip` → main and releasing v0.1.7: the user's verdict on the dots (idle screen, Wi-Fi up, several minutes) and a CI run that can rebuild the core.
2. ~~**Step A - bounce buffers only**~~ **(void — already on, 10 lines, via the board header; 2026-09-27)** (`ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE`, today 0; start at 10 lines = 1024x10 px, ~20 KB each, two buffers, internal DMA-capable RAM). The panel then reads from internal RAM that the CPU refills from PSRAM, so it tolerates short PSRAM stalls. **Expected to cure the Wi-Fi-traffic dots; will NOT cure flash-write flicker**: while flash is written the cache is disabled, so the refill has nothing to read from either. RAM: 67 KB internal free but the largest block is ~32 KB, so two 20 KB buffers may not fit - if not, shrink the LVGL draw buffer 60 -> 40 lines (frees ~40 KB) and check render speed. The refill costs CPU (measure).
3. **Step B - `CONFIG_SPIRAM_XIP_FROM_PSRAM` (+ `CONFIG_SPIRAM_RODATA`)** via pioarduino `custom_sdkconfig`: code and constants run from PSRAM, so flash writes no longer block PSRAM. **Cures flash-write flicker** (screen could stay on during OTA with a progress bar instead of going dark). Cost/risk: `custom_sdkconfig` rebuilds the Arduino core from source (much slower builds, locally and in CI), and may not work cleanly with this platform version - do it on a branch, release only once it works.
4. **Measure again after each step** (FPS, CPU, which symptoms still reproduce) and record the numbers here and on [[esp32-s3-touch-lcd-5b]].
+2 -2
View File
@@ -42,7 +42,7 @@ Push to `main` (no tag) builds a rolling **pre-release `main-latest`** — unsig
Always remember: an install is performed by the firmware that is **already running**, so a fix to the install path only takes effect on the update *after* the one that delivers it (v0.1.1 → v0.1.2 still flickered because v0.1.1 did the writing).
**Dark-screen writes (v0.1.2+).** Flash writes flicker the PSRAM-fed panel (cause below, and [[esp32-s3-touch-lcd-5b]]), so the backlight is off while the image is written: a full-screen notice "Updating to vX — the screen goes dark for about a minute — do not switch off" shows for 3 s first, then "Installed vX / Restarting…" or "Update failed / Still running vY". Seen by the user on the 2026-09-27 screen installs: dark for about a minute, then the restart. The running version is always shown bottom-right on every screen (`A v0.1.2`).
**Progress bar on screen (branch `display-xip`, 2026-09-27; supersedes the dark-screen writes of v0.1.2–v0.1.6).** With the core rebuilt to execute from PSRAM and an IRAM-safe panel refill (see [[perf-xip-ota-2026-09-27]]), flash writes no longer blank the panel, so the full-screen notice now stays lit: "Updating to vX", a bar driven per percent from the download loop, and an amber "Do not switch off the ignition". Verified 2026-09-27 by the user ("the progress bar appeared and no flickering") and by `perf`: 24–25 panel frames/s, 41.5 ms gap for the whole download. Previously (v0.1.2–v0.1.6) the backlight was off while the image was written: a full-screen notice "Updating to vX — the screen goes dark for about a minute — do not switch off" shows for 3 s first, then "Installed vX / Restarting…" or "Update failed / Still running vY". Seen by the user on the 2026-09-27 screen installs: dark for about a minute, then the restart. The running version is always shown bottom-right on every screen (`A v0.1.2`).
Known quirk: `ota status` shows the *other* slot's "built" date from the framework's precompiled app descriptor (e.g. "Nov 4 2025"), not our build time — ignore it.
@@ -90,7 +90,7 @@ Wi-Fi must be joined first — Settings → Wi-Fi (remembered from then on) or `
- **Wi-Fi is remembered (v0.1.5+)**: one network, saved after a successful join, rejoined ~3 s after boot — including the boot that ends an update `(verified 2026-09-27)`. Before v0.1.5 every boot needed a new join.
- **Open the console without resetting the board**: `pio device monitor -p COM10 -b 115200 --dtr 0 --rts 0 --echo` (pio lives at `%USERPROFILE%\.platformio\penv\Scripts\pio.exe`). Opening the port with default DTR/RTS resets it (`rst:0x15 USB_UART_CHIP_RESET`), which drops the Wi-Fi join `(verified 2026-09-26)`.
- **Flicker cause** `(verified 2026-09-26)`: flash and PSRAM share the MSPI cache; every flash write stalls the PSRAM framebuffer the RGB panel streams from (no bounce buffer). Hence the dark screen above.
- **Flicker cause** `(verified 2026-09-26)`: flash and PSRAM share the MSPI cache; every flash write stalls the PSRAM framebuffer that the panel's bounce-buffer refill copies from (the "no bounce buffer" wording here was wrong — the board header enables 10-line bounce buffers). Hence the dark screen of v0.1.2–v0.1.6; cured by XIP from PSRAM + `LCD_RGB_ISR_IRAM_SAFE` (2026-09-27) → [[perf-xip-ota-2026-09-27]].
## Secrets and keys
+88
View File
@@ -0,0 +1,88 @@
17:55:22.250 [ 23254][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:23.071 >>> perf on 1
17:55:23.091 [perf] periodic every 1 s (columns: ts,fps,avg_ms,max_ms,kpx,flush_ms/s,lv_idle,idle0,idle1,int_free,int_largest,psram,vsync/s,vsync_gap_max_us)
17:55:23.260 [ 24258][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #100 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=107 fail=0]
17:55:24.081 PERF,25097,0.0,0.0,0,0,0,100,95,98,63452,31732,4891400,23,41498
17:55:24.092 [ 25098][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
17:55:25.084 PERF,26097,0.0,0.0,0,0,0,0,96,97,63452,31732,4891400,24,41496
17:55:26.082 PERF,27097,0.0,0.0,0,0,0,100,96,97,63452,31732,4891400,24,41498
17:55:27.085 PERF,28097,0.0,0.0,0,0,0,100,96,97,63452,31732,4891400,24,41496
17:55:27.085 >>> wifi status
17:55:27.094 [wifi] connected to 'ArtServis', IP 10.0.10.104, RSSI -51 dBm, channel 1
17:55:27.096 [wifi] saved network: ArtServis
17:55:27.100 [wifi] ESP-NOW ready, sent 125, failed 0
17:55:27.252 [ 28264][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:28.080 PERF,29097,0.0,0.0,0,0,0,100,95,98,63452,31732,4891400,24,41497
17:55:28.541 [ 29538][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #125 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=133 fail=0]
17:55:29.085 PERF,30097,0.0,0.0,0,0,0,100,95,97,63452,31732,4891400,24,41519
17:55:29.094 [ 30106][I][main.cpp:152] loop(): [LOOP] Heartbeat - system running
17:55:29.094 >>> ota install force
17:55:29.200 [ota] working - console and screen values pause until done
17:55:30.083 PERF,31097,0.0,0.0,0,0,0,100,93,38,58044,31732,4831368,24,41563
17:55:30.673 [ota] installing v0.1.6 -> app1 (1709280 bytes)
17:55:31.081 PERF,32097,1.0,118.0,118,614,63,100,95,18,60296,31732,4831628,24,41523
17:55:31.526 [ota] 0%
17:55:32.085 PERF,33097,2.0,7.0,10,15,2,100,93,29,56000,31732,4836832,24,41504
17:55:32.269 [ 33278][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:33.083 PERF,34097,3.0,12.0,12,27,9,98,91,36,56000,31732,4832004,25,41629
17:55:33.825 [ 34824][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #150 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=159 fail=0]
17:55:34.084 PERF,35097,2.0,11.0,12,27,6,98,91,34,56000,31732,4844072,24,41500
17:55:35.085 PERF,36097,3.0,10.0,10,27,8,98,93,35,56000,31732,4844072,24,41590
17:55:35.124 [ota] 10%
17:55:36.085 PERF,37097,3.0,12.0,12,27,9,98,93,33,56000,31732,4846492,24,41499
17:55:37.083 PERF,38097,3.0,11.3,12,27,7,96,92,32,56000,31732,4846492,24,41501
17:55:37.292 [ 38299][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:38.082 PERF,39097,3.0,12.0,12,27,9,95,91,34,56000,31732,4846492,24,41499
17:55:38.608 [ota] 20%
17:55:39.079 PERF,461
17:55:39.109 [ 40114][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #175 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=185 fail=0]
17:55:40.082 PERF,41097,3.0,10.0,10,28,7,98,91,32,56000,31732,4844084,24,41609
17:55:41.083 PERF,42097,3.0,12.0,12,28,9,98,92,29,56000,31732,4844076,24,41516
17:55:42.082 PERF,43097,2.0,11.0,12,28,5,97,92,29,56000,31732,4834412,24,41527
17:55:42.091 [ota] 30%
17:55:42.304 [ 43315][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:43.081 PERF,44097,3.0,12.0,12,28,9,96,91,35,56000,31732,4836824,25,41496
17:55:44.083 PERF,45097,3.0,12.6,14,28,8,95,93,33,56000,31732,4841672,24,41513
17:55:44.403 [ 45411][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #200 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=211 fail=0]
17:55:45.085 PERF,46097,3.0,11.3,12,28,9,95,90,31,56000,31732,4834404,24,41599
17:55:45.584 [ota] 40%
17:55:46.084 PERF,47097,3.0,11.3,12,28,8,98,93,34,54364,31732,4844072,24,41767
17:55:47.082 PERF,48097,3.0,10.6,12,28,7,98,93,31,56000,31732,4846492,24,41594
17:55:47.339 [ 48341][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:48.085 PERF,49097,3.0,10.6,12,28,9,98,92,31,56000,31732,4846492,24,41563
17:55:49.028 [ota] 50%
17:55:49.083 PERF,50097,3.0,11.3,12,28,8,98,93,29,56000,31732,4846492,24,41499
17:55:49.699 [ 50696][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #225 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=237 fail=0]
17:55:50.081 PERF,51097,2.0,12.0,12,28,6,98,91,31,56000,31732,4846504,24,41634
17:55:51.081 PERF,52097,3.0,10.6,12,28,7,96,93,33,56000,31732,4846504,24,41500
17:55:52.083 PERF,53097,3.0,11.3,12,28,8,0,92,31,56000,31732,4846504,24,41611
17:55:52.348 [ 53354][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:52.655 [ota] 60%
17:55:53.081 PERF,54097,3.0,11.3,12,28,8,96,91,33,56000,31732,4834408,24,41549
17:55:54.081 PERF,55097,3.0,12.0,12,28,9,95,92,37,56000,31732,4846492,24,41607
17:55:54.982 [ 55989][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #250 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=263 fail=0]
17:55:55.085 PERF,56097,3.0,11.3,12,28,8,99,90,35,56000,31732,4844076,24,41505
17:55:55.876 [ota] 70%
17:55:56.085 PERF,57097,3.0,11.3,12,28,8,96,92,29,56000,31732,4834416,24,41516
17:55:57.083 PERF,58097,3.0,11.3,12,28,8,95,93,35,56000,31732,4836820,24,41543
17:55:57.375 [ 58384][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:55:58.086 PERF,59097,3.0,11.3,12,28,9,98,91,31,56000,31732,4831984,24,41498
17:55:59.082 PERF,60097,3.0,10.6,12,28,6,97,92,35,56000,31732,4846492,24,41570
17:55:59.236 [ota] 80%
17:56:00.079 6
17:56:00.272 [ 61279][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #19 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=289 fail=0]
17:56:01.085 PERF,62097,3.0,11.3,12,28,8,96,91,36,56000,31732,4841656,24,41652
17:56:02.085 PERF,63097,3.0,11.3,12,28,9,98,92,35,56000,31732,4829588,24,41566
17:56:02.394 [ 63398][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:56:02.474 [ota] 90%
17:56:03.082 PERF,64097,3.0,11.3,12,28,9,98,91,32,56000,31732,4829576,24,41506
17:56:04.079 7
17:56:05.082 PERF,66097,3.0,12.0,12,28,7,96,92,35,56000,31732,4846492,24,41499
17:56:05.568 [ 66574][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #44 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=315 fail=0]
17:56:05.644 [ota] 100%
17:56:06.045 [ota] verified and installed v0.1.6. Rebooting in 3 s; it confirms itself after 30 s of uptime.
17:56:06.081 PERF,67097,3.0,12.0,12,28,29,0,92,14,62964,31732,4891196,24,41503
17:56:07.082 PERF,68097,1.0,112.0,112,614,42,100,96,90,62964,31732,4891200,24,41504
17:56:07.410 [ 68420][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v245 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
17:56:08.082 PERF,69097,0.0,0.0,0,0,0,100,95,98,62964,31732,4891200,24,41498
17:56:09.050 [ 70065][W][STA.cpp:137] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
+4
View File
@@ -28,6 +28,10 @@ Also seen:
- Internal free at idle 63.3 KB (stock 66.3 KB); largest block unchanged at 31.7 KB.
- Cost: `custom_sdkconfig` rebuilds the Arduino core: first build 20 min (and it failed on RainMaker/Insights embedding `https_server.crt` until those unused components were dropped with `custom_component_remove`), rebuilds ~3 min, normal incremental builds unchanged. Generated `sdkconfig.defaults`, `sdkconfig.<env>`, `managed_components/`, `.dummy/` are git-ignored. CI must be able to do the same rebuild (open).
## Second run, with the progress bar (17:55, `raw/perf-xip-ota-20260927-175522.log`)
Same forced install with the new on-screen notice (bar updated per percent from the download loop, screen lit). Panel: **24–25 frames/s, 41.5–41.8 ms gap throughout**; LVGL rendered 2–3 small frames/s (~28 kpx, the bar) at 10–12 ms each; core 1 idle 29–38 %. User watching the screen: "the progress bar appeared and no flickering or other issues" `(verified)`.
## Still to verify (needs eyes)
- **Dots**: idle screen with Wi-Fi associated, several minutes, on the XIP build. The vsync counter cannot see them; only the user can. If the refill ISR being IRAM-safe and the flash traffic being gone were the cause, they are gone; if PSRAM bandwidth contention alone can still delay a refill, some may remain → fallbacks on [[open-questions]] #13 (lower pixel clock, larger bounce buffers, Wi-Fi/LWIP buffers to internal RAM).