Skip to content

OpenOCD does not get installed: debug not working #239

@jjchico

Description

@jjchico

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

  1. I create a new default Arduino project for the Nologo ESP32 Super Mini.
  2. Build and upload the project.
  3. Execute a PIO debugger session.
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions