-
Notifications
You must be signed in to change notification settings - Fork 52
Description
PROBLEM DESCRIPTION
I am trying to debug a project for a esp32 super mini board from VSCode. Build and upload works right. Debug build works right but the debugger does not start because the openocd tool is not installed. The debug console says:
Unpacking...
Tool Manager: [email protected] has been installed!
Warning! Please install 99-platformio-udev.rules
.
More details: https://docs.platformio.org/en/latest/core/installation/udev-rules.html
undefinedDebugInvalidOptionsError: Could not launch Debug Server '/home/jjchico/.platformio/packages/tool-openocd-esp32/bin/openocd'. Please check that it is installed and is included in a system PATH
See https://docs.platformio.org/page/plus/debugging.html
If the debug process is executed again, the "Unpacking..." and "... has been installed" lines are not there any more but the same error occurs. It looks like OpenOCD metadata is installed but not the actual executable.
TO REPRODUCE
- I create a new default Arduino project for the Nologo ESP32 Super Mini.
- Build and upload the project.
- Execute a PIO debugger session.
- Look at the output in the debug console.
EXPECTED BEHAVIOUR
The debugger session starts.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
=== platformio.ini
[platformio]
default_envs = pioarduino-devel
[env]
board = nologo_esp32c3_super_mini
framework = arduino
[env:pioarduino]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
[env:pioarduino-devel]
platform = https://github.com/pioarduino/platform-espressif32.git#develop
=== OpenOCD tool folder after executing the debug process
$ ls -l ~/.platformio/packages/tool-openocd-esp32/
total 8
-rw-rw-r-- 1 jjchico jjchico 420 jul 7 13:40 package.json
-rw-rw-r-- 1 jjchico jjchico 3485 jul 7 13:39 tools.json
(Please, remember to close the issue when the problem has been addressed)