Prepare The Raspberry Pico
Get started with Raspberry Pi Pico and Compile the pico-serprog firmware
I have completed this procedure using Arch Linux. If you're using a Debian-based distribution, the steps may vary slightly, but it shouldn't be a significant issue.
Dependencies
cmake
Raspberry Pico SDK
This part is based on this link.
Installation
Get the SDK using YAY package manager
Logoff your OS to automatically enable the environmental variables
Compiling the Firmware
Clone the pico-serprog
repository from here
Compile it
At this point you should have the pico-serprog.uf2
file ready for copying into the Raspberry Pico!
Connect the Pico to PC
Connect the USB cable to your laptop
press and hold the BOOTSEL button on your Pico while you plug it in (this forces it into the bootloader mode)
The Pico will be detected as USB flash drive
Copy the Firmware
Drag your
pico_serprog.uf2
into your Pico.Your Pico will disconnect, that means it is now ready and can be unplugged.
Type the following command
Now plug your Raspberry Pico again and you should get the following output
Please ensure you take note of the serial port designation (in this instance, ttyACM0
) to which your device is connected. This step is crucial as we'll need to verify the readiness of the device for usage following the installation of flashprog.
Now you can unplug the Raspberry Pico
If you want to change the firwmare in the future, you need to press the BOOTSEL button on the board while you plug it in.
Last updated