Solved "Installing Pico SDK 1.5.1" - I think
I would recommend getting things to work with the latest 2.1.2 SDK but if you, or anyone else, wants to revert to 1.5.1 this appears to work. I am guessing it should work with other versions with the '--branch' option set appropriately. I think '--depth 1' is optional ...I ignored the 'detached HEAD' state warning.Numbers on the left are what the command shows, what the above commands have created. Numbers on the right are my own 1.5.1 tree where different. My tree has additional TinyUSB versions, 'pioasm' builds etc included. All-in it seems to be in the right ballpark.
And the proof is in the pudding ...Success I would say.
I would recommend getting things to work with the latest 2.1.2 SDK but if you, or anyone else, wants to revert to 1.5.1 this appears to work. I am guessing it should work with other versions with the '--branch' option set appropriately. I think '--depth 1' is optional ...
Code:
cd ~/picogit clone --depth 1 --branch 1.5.1 https://github.com/raspberrypi/pico-sdk.git pico-sdk-1.5.1Code:
cd pico-sdk-1.5.1git submodule update --initdu -d 1 -h .Code:
pi@Pi4B:~/pico/pico-sdk-1.5.1 $ du -d 1 -h .8.0K ./external315M ./.git# 266M224K ./docs9.0M ./src# 11M48K ./.github448K ./tools# 4.6M68K ./cmake250M ./lib# 374M260K ./test574M .# 656MAnd the proof is in the pudding ...
Code:
pi@Pi4B:~/mypico/simplest-blink $ mkdir build-1.5.1pi@Pi4B:~/mypico/simplest-blink $ cd build-1.5.1pi@Pi4B:~/mypico/simplest-blink/build-1.5.1 $ PICO_SDK_PATH=/home/pi/pico/pico-sdk-1.5.1 cmake ..pi@Pi4B:~/mypico/simplest-blink/build-1.5.1 $ makepi@Pi4B:~/mypico/simplest-blink/build-1.5.1 $ mptool listCode:
Program Name : simplest-blinkTarget Device : RP2040Target Chip : Cortex-M0+Target ISA : ARMv6-MTarget Board : PicoCode Execution Type : Load and run from RAMBuild Date : Jun 27 2025Pico SDK Version : 1.5.1<--Build Attributes : ReleaseProgram Area Used : 20000000 to 20001FFF 8 KB 8,192 bytesCopy Table Information : 20000034 to 2000005B 10 quads 40 bytesBinary Info Root Entry : 200000B0 to 200000C3 5 quads 20 bytesBinary Info Pointers : 20001ECC to 20001EDF 5 quads 20 bytesBinary Info Tag Name : 'RP' - Raspberry Pi Pico SDKStatistics: Posted by hippy — Fri Jun 27, 2025 7:40 am