Files
ZephCore/zephcore/adapters
Étienne Fesser c4fb9c0638 Fix TX wait thread stack overflow on Xtensa (boot freeze)
TX_WAIT_THREAD_STACK_SIZE was 1024 bytes, shared by every radio
adapter. On Xtensa (all ESP32/S3 boards) the windowed ABI needs ~3x
the stack of Cortex-M for the same code — Zephyr's own Kconfig
defaults reflect this (IDLE_STACK_SIZE: 1024 if XTENSA vs 320 ARM).

Measured peak usage on Heltec V4 (immediate-mode logging, full TX
cycle including startReceive/lora_config): 1252 bytes — already past
the old 1024 limit. The overflow corrupts the exception frame and
parks CPU0 in _DoubleExceptionVector (LoadProhibited @0x2c), a silent
total freeze at boot. Confirmed via the S3 built-in USB-JTAG:
current thread at crash = lora_tx_wait.

2048 gives ~39% headroom over the measured worst case.
2026-07-06 19:26:17 +02:00
..
2026-07-04 11:21:10 +02:00
2026-06-09 14:46:30 +02:00
2026-07-03 09:11:43 +02:00
2026-06-07 22:47:17 +02:00
2026-06-07 22:47:17 +02:00
2026-06-07 22:47:17 +02:00
2026-06-07 22:47:17 +02:00
2026-06-21 20:38:57 +02:00
2026-06-23 22:45:25 +02:00
2026-06-07 22:47:17 +02:00