Getting started with Raspberry Pi Pico
Appendix B: Using Picotool
It is possible to embed information into a Raspberry Pi Pico binary, which can be retrieved using a command line utility
called
picotool
Getting picotool
The
picotool
script.
$ git clone -b master https://github.com/raspberrypi/picotool.git
$ cd picotool
You will also need to install
$ sudo apt-get install libusb-1.0-0-dev
NOTE
If you are building
$ brew install libusb pkg-config
While if you are building on Microsoft Windows you can download and install a Windows binary of
from the
libusb.info
Building picotool
Building
picotool
$ mkdir build
$ cd build
$ export PICO_SDK_PATH=~/pico/pico-sdk
$ cmake ../
$ make
this will generate a
Getting picotool
.
utility is available in its own repository. You will need to clone and build it if you haven't ran the pico-setup
if it is not already installed,
libusb
on macOS you can install
picotool
site.
can be done as follows,
command-line binary in the
picotool
using Homebrew,
libusb
directory.
build/picotool
directly
libusb
65
Need help?
Do you have a question about the RP2040 and is the answer not in the manual?