fix(firmware): 50 Hz callback rate gate + sdkconfig extra IRAM opt

- Add early rate gate in wifi_csi_callback at 50 Hz (defense-in-depth,
  does not prevent crash alone but reduces callback execution time)
- Add null-data injection timer infrastructure (disabled — TX adds
  interrupt pressure that triggers the SPI cache crash, RuView#396)
- sdkconfig.defaults: add CONFIG_ESP_WIFI_EXTRA_IRAM_OPT=y
- sdkconfig.defaults: document SPIRAM XIP attempt (crashes differently)

Co-Authored-By: Ruflo & AQE
This commit is contained in:
Dragan Spiridonov
2026-04-16 18:12:43 +02:00
committed by ruv
parent ace61696b1
commit a14835bb91
2 changed files with 169 additions and 46 deletions
+7 -3
View File
@@ -32,6 +32,10 @@ CONFIG_LWIP_SO_RCVBUF=y
# FreeRTOS: increase task stack for CSI processing
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
# ADR-081: adaptive_controller runs emit_feature_state + stream_sender
# network I/O inside Timer Svc callbacks, exceeding the 2 KiB default.
CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=8192
# SPIRAM XIP tested but crashes with "Cache disabled but cached memory
# region accessed" — different crash type, not solved. Disabled for now.
# See RuView#396 for details. PSRAM heap-only mode can be enabled later.
# CONFIG_SPIRAM is not set
# Extra WiFi IRAM placement (defense-in-depth)
CONFIG_ESP_WIFI_EXTRA_IRAM_OPT=y