Page 1 of 1

Spinlock when reading from SPI flash waiting for s_flash_op_can_start

Posted: Sun Feb 15, 2026 3:32 am
by asyncmeow
Hello!
I have some simple firmware running on an ESP32s3 which has Lua 5.4 as a component which reads and runs some code from a LittleFS filesystem on boot. It's able to run smaller Lua scripts fine, but larger ones seem to hit issues where it gets stuck at https://github.com/espressif/esp-idf/bl ... #L164-L167 waiting for s_flash_op_can_start to become true, eventually triggering a task watchdog timeout. Any ideas why this would happen?