Skip to content

Add Waveshare RP2350-PiZero board - #5670

Merged
deadprogram merged 2 commits into
tinygo-org:devfrom
davecheney:davecheney-rp2350-pizero-board
Sep 12, 2026
Merged

deadprogram merged 2 commits into
tinygo-org:devfrom
davecheney:davecheney-rp2350-pizero-board

Conversation

@davecheney

Copy link
Copy Markdown
Contributor

The Waveshare RP2350-PiZero is useful as a first-class TinyGo target for projects that use this RP2350B board. This adds a concrete target and machine pin map so users can build for it directly with -target waveshare-rp2350-pizero.

This target inherits from rp2350b, sets the board build tag and 16 MB flash size, and adds RP2350B GPIO aliases plus the Pico SDK default UART1, I2C1, and SPI1 pins. LED is set to NoPin because the Pico SDK board header does not define PICO_DEFAULT_LED_PIN, and the Arduino-Pico variant does not define PIN_LED.

Validation:

  • LLVM_CONFIG=/opt/homebrew/opt/llvm@20/bin/llvm-config go test -tags=llvm20 ./compileopts -run 'TestLoadTarget|TestGetTargetSpecs'
  • PATH=/opt/homebrew/opt/lld@20/bin:$PATH LLVM_CONFIG=/opt/homebrew/opt/llvm@20/bin/llvm-config go run -tags=llvm20 . build -target waveshare-rp2350-pizero -o /tmp/waveshare-rp2350-pizero-empty.uf2 examples/empty
  • PATH=/opt/homebrew/opt/lld@20/bin:$PATH LLVM_CONFIG=/opt/homebrew/opt/llvm@20/bin/llvm-config go run -tags=llvm20 . build -target waveshare-rp2350-pizero -o /tmp/waveshare-rp2350-pizero-blinky1.uf2 examples/blinky1

@deadprogram

Copy link
Copy Markdown
Member

@davecheney can you please also add to the smoke tests? Thank you!

@davecheney

Copy link
Copy Markdown
Contributor Author

@davecheney can you please also add to the smoke tests? Thank you!

Mia culpa, I’ll fix

@davecheney
davecheney force-pushed the davecheney-rp2350-pizero-board branch from fc2cd13 to e282dad Compare September 11, 2026 23:47
@davecheney

Copy link
Copy Markdown
Contributor Author

@deadprogram PTAL

@deadprogram deadprogram left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the addition @davecheney now squash/merging.

@deadprogram
deadprogram merged commit 013a081 into tinygo-org:dev Sep 12, 2026
57 of 59 checks passed
@davecheney
davecheney deleted the davecheney-rp2350-pizero-board branch September 12, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants