开发工具、编译环境、芯片
VSCode + PlatformIO + ESP32
报错信息
Error: timed out while waiting for target halted
Error: xtensa_wait_algorithm: not halted 0, pc 0x40088825, ps 0x60023
Error: Failed to wait algorithm (-302)!
Error: Algorithm run failed (-302)!
Error: Failed to run flasher stub (-302)!
解决办法
更新 platformio/tool-openocd 依赖库版本
原因分析
可能是因为本地ESP-IDF库4.4提升5.1版本导致