Code Monkey home page Code Monkey logo

Comments (4)

lurch avatar lurch commented on July 17, 2024 1

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.

jt000 avatar jt000 commented on July 17, 2024

@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.

jt000 avatar jt000 commented on July 17, 2024

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.

lurch avatar lurch commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.