Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6977

SDK • Fresh Rasbpian Lite, openOCD wont work

$
0
0
Hello,

So did setup a fresh Raspbian lite (headless, SSH in from VS on my desktop) to move all my pico projects over, now when we have the nice VS extension and all.

However, I seem to miss some bits and pieces anyway. First of all, the lite version of rasbpian seem to miss some dependencies.
Followed the generic guide instead, which seem to resolve most of them.

However, I do get some weird error with GDB and / openOCD. I just get "GDB quit unexpectedly, check terminal" and nothing is there, just the start command regarding openOCD. (Which for some reason is called openocd.exe even under linux?

To get a error i run openOCD straight in the terminal, then I get thias error:

Code:

/home/pi/.pico-sdk/openocd/0.12.0+dev/openocd.exe -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /home/pi/.pico-sdk/openocd/0.12.0+dev/scripts -f /home/pi/.vscode-server/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f target/rp2350.cfg -c "adapter speed 5000"/home/pi/.pico-sdk/openocd/0.12.0+dev/openocd.exe: error while loading shared libraries: libhidapi-hidraw.so.0: cannot open shared object file: No such file or directory
Looks like libhidapi is missing but needed? Cant find much about this in terms of raspberry pi OS /pico specifically. Guessing I'm missing some more stuff as im using the "Lite" release? Any tips is greatly appreciated.

Statistics: Posted by crosswinds — Sat May 10, 2025 9:43 pm — Replies 2 — Views 82



Viewing all articles
Browse latest Browse all 6977

Trending Articles