Hello,
I am working on an ESP-32 project in VScode, using Platform IO. Debugging works for the simplest program, but as soon as I try to debug the full project (with multiple threads) the debugging fails and the debug console starts spitting out a bunch of warnings and errors (the following, repeatedly)
Info : The target is not running when halt was requested, stopping GDB.
Warn : Target [esp32.cpu1] not HALTED!
Warn : [esp32.cpu1] target not halted
Error: Could not read FreeRTOS thread count from target!
The Platormio.ini is:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = espidf
monitor_speed = 115200
;build_flags = -fmax-include-depth=500
upload_protocol = esp-prog
debug_tool = esp-prog
debug_init_break = tbreak app_main
debug_load_cmds = preload
;lib_deps =
; me-no-dev/AsyncTCP@^1.1.1
; me-no-dev/ESP Async WebServer@^1.2.3
;board_build.f_cpu = 240000000
board_upload.flash_size = 16MB
;board_upload.maximum_ram_size: 327680
;board_upload.maximum_size = 16777216
board_build.partitions = partitions.csv
any insight into debugging the ESP32 with multiple threads would be much appreciated