I am trying to get Platformio setup on Ubuntu 22.04.3 LTS with an olimex-arm-usb-ocd-h debug probe and when I try to upload or debug I receive the error:
Configuring upload protocol…
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = olimex-arm-usb-ocd-h
Uploading .pio/build/esp32dev/firmware.bin
Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
debug_level: 1
adapter speed: 5000 kHz
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: no device found
Error: unable to open ftdi device with vid 15ba, pid 002b, description ‘Olimex OpenOCD JTAG ARM-USB-OCD-H’, serial ‘’ at bus location '’
** OpenOCD init failed **
shutdown command invoked
*** [upload] Error 1
===================== [FAILED] Took 2.24 seconds =====================
Environment Status Duration
esp32dev FAILED 00:00:02.243
=============== 1 failed, 0 succeeded in 00:00:02.243 ===============
When I run lsusb I see:
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 003 Device 003: ID 15ba:002b Olimex Ltd. ARM-USB-OCD-H JTAG+RS232
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Here are my platformio.ini entries:
[env:esp32dev]
platform = espressif32
framework = arduino
board = nodemcu-32s
monitor_speed = 115200
debug_tool = olimex-arm-usb-ocd-h
upload_protocol = olimex-arm-usb-ocd-h
Visual Code Info:
Version: 1.83.0
Commit: e7e037083ff4455cf320e344325dacb480062c3c
Date: 2023-10-03T16:11:49.843Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.2.0-34-generic
Any help would be greatly appreciated.