Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

SDK • Re: picotool keeps wanting to be build

$
0
0
This is what I use for building a local 'picotool' on Raspberry Pi OS. Doesn't require any setting of 'picotool_DIR'. Takes about 5 minutes on a Pi 4B. Ignore any warnings and/or notes during the 'make' -

Code:

cd ~/picosudo apt install libusb-1.0-0-devgit clone https://github.com/raspberrypi/picotool.gitcd picotoolmkdir buildcd buildcmake ..makesudo make installsudo ln -s ~/pico/picotool/build/picotool /usr/local/bin/picotool
The 'sudo make install' tells future builds not to download and build 'picotool' every time. The 'sudo ln' is optional and makes it available as a system-wide application. Note you need to use "version" not "--version" for it to report that -

Code:

pi@Pi4B:~ $ ~/pico/picotool/build/picotool versionpicotool v2.2.0 (Linux, GNU-12.2.0, Release)pi@Pi4B:~ $ picotool versionpicotool v2.2.0 (Linux, GNU-12.2.0, Release)
Similarly for building a local 'pioasm' executable. Takes about a minute on a Pi 4B. Ignore any warnings and/or notes during the 'make' -

Code:

cd ~/pico/pico-sdk/tools/pioasmmkdir buildcd buildcmake -DPIOASM_VERSION_STRING="2.2.0" ..makesudo make installsudo ln -s ~/pico/pico-sdk/tools/pioasm/build/pioasm /usr/local/bin/pioasm
The -DPIOASM_VERSION_STRING="2.2.0" is needed for SDK 2.2.0. I have no idea why when it is implicitly provided as part of 2.2.0, could be set as part of 'CMakeLists.txt' and allow an override if someone wants that. If you don't specify the correct version number it will probably get quite confusing when it claims to be something it isn't.

Code:

pi@Pi4B:~ $ ~/pico/pico-sdk/tools/pioasm/build/pioasm --versionpioasm version: 2.2.0pi@Pi4B:~ $ pioasm --versionpioasm version: 2.2.0

Statistics: Posted by hippy — Fri Aug 01, 2025 10:52 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles