Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pico-sdk doesn't have picotool anymore #13566

Closed
1 task done
acassis opened this issue Sep 21, 2024 · 3 comments · Fixed by #14621
Closed
1 task done

pico-sdk doesn't have picotool anymore #13566

acassis opened this issue Sep 21, 2024 · 3 comments · Fixed by #14621
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Build system

Comments

@acassis
Copy link
Contributor

acassis commented Sep 21, 2024

Description / Steps to reproduce the issue

$ export PICO_SDK_PATH=~/pico-sdk

$ ./tools/configure.sh raspberrypi-pico:usbnsh

$ make -j
picotool uf2 convert --quiet -t elf nuttx nuttx.uf2;
/usr/bin/bash: line 1: picotool: command not found

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu 24.10

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Build System]

Verification

  • I have verified before submitting the report.
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: Build system labels Sep 21, 2024
@acassis
Copy link
Contributor Author

acassis commented Sep 21, 2024

I found the solution here: https://forums.raspberrypi.com/viewtopic.php?t=358951

cd ~/pico
sudo apt install libusb-1.0-0-dev
git clone https://github.com/raspberrypi/picotool.git
cd picotool
mkdir build
cd build
cmake ..
make
sudo ln -s ~/pico/picotool/build/picotool /usr/local/bin/picotool

Note: using the pico-sdk branch 1.1.2 is failing on Ubuntu 24.10:

make[1]: *** No rule to make target '/home/alan/pico-sdk/src/rp2040/boot_stage2/boot2_w25q080.S', needed by 'rp2040_boot_stage2.elf'.  Stop.
make: *** [tools/Unix.mk:548: nuttx] Error 2

@linguini1
Copy link
Contributor

This is similar to the findings in #13483.

I opened a PR to change the docs for the Pico and Pico W but it appears other pages need updating too. I believe the Pico SDK back-ported changes from 2.0.0 to other versions which broke 1.1.2, but I can't find evidence of that in their git history.

@acassis
Copy link
Contributor Author

acassis commented Sep 23, 2024

Thank you @linguini1 !!! Actually, compiling/installing the picotool and using version 2.0.0 works fine, but we need to check if WiFi still working for this version as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Build system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants