Description
Issue:
Within the pico-setup script, there is a section (around line 100) where it clones and builds the picotool repository, then copies the executable into /usr/local/bin.
Apparent Cause:
The above appears to be insufficient for the pico-sdk "Findpicotool" step, resulting in local rebuilds of the picotoool executable in EVERY project due to the pico-sdk "Findpicotool" step failing (despite it being in the path).
Fallout:
This can also be seen described in issue pico-sdk#1818, and possibly #41 in this repository.
My solution:
I was able to correct this on my own (Raspberry Pi 5) system by performing the following instructions, as described in the picotool repository's README.md:
1.
On Linux you can add udev rules in order to run picotool without sudo:
sudo cp udev/99-picotool.rules /etc/udev/rules.d/
Whilst the SDK can download picotool on its own per project, if you have multiple projects or build configurations, it is preferable to install a single copy of
picotool
locally.This can be done most simply with
make install
, usingsudo
if required; the SDK will use this installed version by default.
Note: Because of this item, I did a "sudo make install" after the initial build. This appears to have done additional operations beyond the simple "sudo cp" of the executable which is done by the pico-setup.sh script.
After these two steps, it's not complaining and forcing a remake each time.
I'm not sure if you are interested in fixing this, however (even though it is reported as an issue repeatedly), because the picotool repository seems to imply that there may be some situations where you may want a separate picotool for each project.
Activity