| commit | eb494103d43ddaf432b261078112db26f4c97255 | [log] [tgz] |
|---|---|---|
| author | Roger Wolff <R.E.Wolff@BitWizard.nl> | Thu Jun 22 14:50:25 2023 +0200 |
| committer | GitHub <noreply@github.com> | Thu Jun 22 13:50:25 2023 +0100 |
| tree | 3e6e750f8b4fce7756a9ca22ce3c9d74606ce7a6 | |
| parent | 7de418cce3dae75ad854029b14e8869955f0afaa [diff] |
buildsystem improvements to make it easier to build for debugprobe. (#87) Merge documentation pull request from @rewolff
Picoprobe allows a Pico / RP2040 to be used as USB -> SWD and UART bridge. This means it can be used as a debugger and serial console for another Pico.
Picoprobe documentation can be found in the Pico Getting Started Guide. See “Appendix A: Using Picoprobe”.
For the purpose of making changes or studying of the code, you may want to compile the code yourself.
To compile this project just initialize the submodules and update them:
git submodule init git submodule update
then create and switch to the build directory:
mkdir build cd build
then run cmake and build the code:
cmake .. make
Done! You should now have a picoprobe.uf2 that you can upload to your pico in the normal way.
If you want to create the version that runs on the raspberry pi debugprobe, then you need to invoke cmake in the sequence above with the DEBUGPROBE=ON option:
cmake -DDEBUGPROBE=ON ..
This will build with the configuration for the debugprobe and call the output program “debugprobe.uf2” as opposed to “picoprobe.uf2” for the vanilla version.
Note that if you first ran through the whole sequence to compile for the pico, then you don't need to start back at the top. You can just go back to the cmake step and start from there.