-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation missing 'sudo make install' for OpenOCD #432
Comments
I believe the I also see that Appendix A says "To start openocd from the build directory, you can use:" which implies that |
Also, I see that your forum thread says "if you install it with apt, then you will not get the build that comes from Raspberry pi". For Raspberry Pi OS, we do ship our custom version of openocd inside the apt-installable I hope that all makes sense! 🙂 |
what I can say is I had a really rough time getting things to work until I did the sudo make install command. and I only realized I needed it after I found the existence of pico_setup.sh and looked inside. That script is mentioned later in Appendix C. in Appendix A there is a segment titled "Debug with OpenOCD" and the following command is suggested: that line is not going to work without specifying full paths to the .elf or full paths to the two .cfg files. It will not work as is if you have followed the build instructions without the install command. I don't know how many people are going to realize that build+install or install from apt are two optional ways of doing something that is similar. People might be familiar with embedded compilers and know little about building packages on a linux system. |
Just wanted to add that I also ran into this issue after coming back to a project I updated in September of this year. I agree with @themzlab that the documentation should add some additional notes regarding the upstream discrepancy in I wrote a bash script that uses # Create a pane for OpenOCD
# NOTE: Check the README for information regarding openocd.
# AS of Dec 10, 24: Openocd must be built from source.
tmux send-keys -t pico_debug "sudo openocd -s tcl -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\"" Enter we didn't use to have pass in I tried adjusting my Hopefully the changes can be upstreamed soon! System Details:Pop_OS! (Ubuntu 22.04) |
in this document, as of the 15 October 2024 update...
Getting Started With Pico
Appendix A
building OpenOCD
installation instructions are missing a required line:
sudo make install
and optional flags need to be specified during the configuration step. I found these in the setup_pico.sh script
--enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio --disable-werror
however, when I built it I ended up using these options and it has worked so far for my configuration to load .elf files with the Raspberry Pi Debug Probe
--disable-werror --enable-cmsis-dap
before I found this repository, I made post in this forum about it.
pico sdk forum post
The text was updated successfully, but these errors were encountered: