RP2040-zero board ussue

There is a new error trying to build existing project where platformio.ini constains
[env:waveshare_rp2040_zero]
platform = raspberrypi
board = waveshare_rp2040_zero
framework = arduino

or to create a new project for waveshare_rp2040_zero board:
PIO Core Call Error: “The following files/directories have been created in D:\Projects\temp\test\r\ninclude - Put project header files here\r\nlib - Put project specific (private) libraries here\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nResolving waveshare_rp2040_zero dependencies…\r\n\n\nUnknownBoard: Unknown board ID ‘waveshare_rp2040_zero’
with an error inside problems tab: cannot open source file “pico.h” (dependency of “Arduino.h”)

It has started after updating platform on my laptop to support newly added Raspberry Pi Pico2 boards by executing ‘pio lib update’ command

The official raspberrypi platform does not have that board definition. But my fork does.

You should be doing this one-time setup: https://arduino-pico.readthedocs.io/en/latest/platformio.html#important-steps-for-windows-users-before-installing

And be using this as platformio.ini

[env:waveshare_rp2040_zero]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = waveshare_rp2040_zero
framework = arduino

Then the board definition should be available as normal and you will be working with the Arduino-Pico core. (not ArduinoCore-mbed! You would have to use the generic board = pico for that).

1 Like

But my fork does.

You did a good job, thanks! It works now