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

SDK • Re: picotool incompatibility

$
0
0
Can find it here, better stick to the master branch (2.1.1 for now): https://github.com/raspberrypi/picotool/tree/master
Thank you. How do I make sure it uses the 2.1.1 branch though? All I ever did was run make in the pico-examples/build directory, so this 'upgrade' must've been a consequence of that. Or maybe my system has been hacked and somebody is trying to get into the pico bootloader? But there are thousands of lines of cmake files in the SDK and examples and it's quite hard to find out how anything actually works.

Update: so I deleted pico-sdk and pico-examples and started over again. This time I noticed the warning when I ran cmake in the pico-examples/build directory

Code:

CMake Warning at /home/ian/pico/pico-sdk/tools/Findpicotool.cmake:30 (message):  No installed picotool with version 2.1.1 found - building from source  It is recommended to build and install picotool separately, or to set  PICOTOOL_FETCH_FROM_GIT_PATH to a common directory for all your SDK  projectsCall Stack (most recent call first):  /home/ian/pico/pico-sdk/tools/CMakeLists.txt:138 (find_package)  /home/ian/pico/pico-sdk/src/cmake/on_device.cmake:34 (pico_init_picotool)  /home/ian/pico/pico-sdk/src/rp2350/boot_stage2/CMakeLists.txt:57 (pico_add_dis_output)  /home/ian/pico/pico-sdk/src/rp2350/boot_stage2/CMakeLists.txt:98 (pico_define_boot_stage2)
So I went and followed the instructions to build picotool from the github repository:,

Code:

git clone https://github.com/raspberrypi/picotool.git --branch mastercd picotool/mkdir buildcd build/export PICO_SDK_PATH=../../pico-sdkcmake ..make
and I installed it in /usr/local by running

Code:

sudo make install
and now I don't get that warning and so hopefully it will not be upgraded to 2.1.2-develop again, though I still don't understand how that happened.

Statistics: Posted by ianangrant — Sun Jul 06, 2025 10:33 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles