Comments (4)
Have you installed openocd following the instructions in https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf or are you using some older version?
EDIT: Ahh, and see also https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html#linux-and-raspberry-pi
from openocd.
@lurch Yeah, I followed the instructions on the debug-probe page. I actually did both the sudo apt install openocd
and locally cloned\built\installed, which I wonder if that might be causing the issue...
EDIT: Removed & reinstalled via sudo apt install openocd
and same issue :(
jt000@MACHINENAME:~/_git/project_name$ sudo openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program project_name.elf verify reset exit"
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
embedded:startup.tcl:26: Error: Can't find target/rp2040.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 26
from openocd.
Figured it out... Appears I need to read instructions better.
For anyone else who might've did the same thing I did:
sudo apt install openocd
is only if you're running on Raspberry Pi OS. If you're running on Debian, then do not install this. It will not work even if you also follow the clone\build\install directions as well.
from openocd.
Usually, if you've installed a program through apt
(which typically installs things into /usr/bin
), and also compile and install the same program from source (which normally installs things into /usr/local/bin
), then the version that you've installed from source takes precedence over the apt-installed version, because /usr/local/bin
normally appears before /usr/bin
in your $PATH
. But I guess running things as sudo
might interfere with that?
If you want to ensure that you're using the installed-from-source version rather than the apt-installed version, you could run
sudo /usr/local/bin/openocd ...
instead of
sudo openocd ...
EDIT: And when you run the version of openocd from this repo, you'll see something like Open On-Chip Debugger 0.12.0-g4d87f6dca (2024-02-04-23:01)
rather than the Open On-Chip Debugger 0.11.0
message that you're (presumably) getting from your apt-installed version of openocd.
from openocd.
Related Issues (20)
- Failed to launch OpenOCD GDB Server HOT 1
- OpenOCD can't find the CMSIS-DAP device, but pyocd can. HOT 6
- Using a Pico W for a picoprobe not working HOT 16
- Any chance to update to openocd 0.12? HOT 6
- New install of OpenOCD and Msys2 - bootstrap and configure errors HOT 2
- Picoprobe with not working openOCD mac osx HOT 2
- Semihosting unusable due to excesive verbosity HOT 14
- Packaging raspberrypi/openocd on nixpkgs HOT 2
- Make errors out on -Werror HOT 8
- FRAM chip IDs incorrect HOT 2
- Cannot build on M1 macOS Sonoma HOT 3
- On Mac, through Visual Studio Code, OpenOcd exits immediately HOT 1
- Not able to flash the binary to picoW HOT 2
- OpenOCD + Picoprobe flashes extremely slowly HOT 1
- question about monitor reset init operation for raspberrypi pico HOT 2
- Not able to run Openocd for rp2040 on rpi5 HOT 18
- Raspberry Pi Debug Probe documentation needs clarification HOT 8
- Unable to build openocd HOT 1
- Unable to flash using openocd & gdb `load` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openocd.