raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
131 stars 16 forks source link

FYI: missing libs for openocd on Ubuntu 22.04: libftdi1-2 libhidapi-hidraw0 #40

Closed CHiPs44 closed 2 months ago

CHiPs44 commented 3 months ago

I had to install libftdi1-2 and libhidapi-hidraw0 to be able to use openocd with my picoprobe:

sudo apt install libftdi1-2 libhidapi-hidraw0
kaycebasques commented 3 months ago

I think I also just ran into this while trying the debug workflow from Pico quickstart

Cortex-Debug: VSCode debugger extension version 1.12.1 git(652d042). Usage info: https://github.com/Marus/cortex-debug#usage
Reading symbols from objdump-multiarch --syms -C -h -w /home/kayce/pico/projects/blink/build/blink.elf
Reading symbols from nm-multiarch --defined-only -S -l -C -p /home/kayce/pico/projects/blink/build/blink.elf
Launching GDB: gdb-multiarch -q --interpreter=mi2
    IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see verbose GDB transactions here. Very helpful to debug issues or report problems
Error: nm-multiarch failed! statics/global/functions may not be properly classified: Error: spawn nm-multiarch ENOENT
    Expecting `nm` next to `objdump`. If that is not the problem please report this.
Error: objdump failed! statics/globals/functions may not be properly classified: Error: spawn objdump-multiarch ENOENT
    ENOENT means program not found. If that is not the issue, please report this problem.
Launching gdb-server: /home/kayce/.pico-sdk/openocd/0.12.0+dev/openocd.exe -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /home/kayce/.pico-sdk/openocd/0.12.0+dev/scripts -f /home/kayce/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000"
    Please check TERMINAL tab (gdb-server) for output from /home/kayce/.pico-sdk/openocd/0.12.0+dev/openocd.exe
Finished reading symbols from objdump: Time: 13 ms
Finished reading symbols from nm: Time: 10 ms

After installing the stuff that @CHiPs44 mentions it seems to be working now

will-v-pi commented 2 months ago

I've added a note on this to the readme