Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5323

SDK • Re: What is the -D PICO_BOARD for Zero ?

$
0
0
I normally create a custom board file for every RP2040/Pico PCB that I make - if my PCB is a carrier for a standard Pico/2/W etc then my custom file just has defines to identify how the GPIOs are connected and does #include <boards/pico.h> or whatever to get the rest of the defines for that board. If my board is a custom RP2040 board, then I clone one of the standard files and edit it to suit what I've actually provided on my board (flash sizes etc).
Be aware of this issue. Doing #include <boards/pico.h> works because RP2040 is the default anyway. However doing #include <boards/pico2.h> does not work because CMake will not know it should be compiling for RP2350.

Statistics: Posted by Memotech Bill — Thu Dec 19, 2024 1:52 pm



Viewing all articles
Browse latest Browse all 5323

Trending Articles