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

SDK • Re: How to revert SDK back to 1.5.1?

$
0
0
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 ...

Code:

cd ~/picogit clone --depth 1 --branch 1.5.1 https://github.com/raspberrypi/pico-sdk.git pico-sdk-1.5.1
I ignored the 'detached HEAD' state warning.

Code:

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    .# 656M
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 ...

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 list

Code:

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 SDK
Success I would say.

Statistics: Posted by hippy — Fri Jun 27, 2025 7:40 am



Viewing all articles
Browse latest Browse all 8051

Trending Articles