An experimental project about writing programs for RP2040 MCUs in Zig language
(Working in progress but the main objective) This program demonstrates how to write a baremetal application for RP2040 in Zig.
The application blinks a LED connected on GPIO25 (preinstalled on Raspberry Pi Pico boards).
-
✓ Blink a LED on GPIO25
-
✓ Generate a valid UF2 binary for Raspberry Pi Pico board
-
❏ Refactor build scripts
-
❏ Rewrite the GPIO APIs
-
❏ Add more features to the HAL
-
❏ Support more flash memories
The register structures generated from rp2040.svd( https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2040/hardware_regs/rp2040.svd ) using modified svd4zig( https://github.com/ikubaku/svd4zig ).
Set the build mode for the second stage bootloader to ReleaseSmall.
You will need this option to be enabled because the size of the debug bootloader almost always exceed 252 bytes.