Flashrom compatible SPI flasher firmware for the Raspberry Pi Pico.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Máté Kukri 14d004ca02 Use TinyUSB directly instead of the SDK's stdio layer 3 months ago
.gitignore Improve performance 3 months ago
CMakeLists.txt Use TinyUSB directly instead of the SDK's stdio layer 3 months ago
COPYING Init 7 months ago
main.c Use TinyUSB directly instead of the SDK's stdio layer 3 months ago
pico_sdk_import.cmake Init 7 months ago
readme.md Use hardware SPI peripheral (WARN: this changed pinout!) 3 months ago
serprog.h Use hardware SPI peripheral (WARN: this changed pinout!) 3 months ago
tusb_config.h Use TinyUSB directly instead of the SDK's stdio layer 3 months ago
usb_descriptors.c Use TinyUSB directly instead of the SDK's stdio layer 3 months ago

readme.md

pico-serprog

Slightly less terrible serprog implementation for the Raspberry Pi Pico and possibly other RP2040 based boards. Based on pico-serprog by GitHub user "stacksmashing".

Pinout for the SPI lines:

Pin Function
GP5 CS
GP4 MISO
GP3 MOSI
GP2 SCK

Example

Substitute ttyACMx with the actual tty device corresponding to the firmware.

Read chip:

flashrom -p serprog:dev=/dev/ttyACMx -r flash.bin

Write chip:

flashrom -p serprog:dev=/dev/ttyACMx -w flash.bin

License

As a lot of the code itself was heavily inspired/influenced by stm32-vserprog this code is licensed under GPLv3.