You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Raspberry Pi Pico W: rpipicow.json lacks the CYW43 defines, so every sketch fails at link (2.5.51) #2014
On fbuild 2.5.51 a Pico W sketch that uses no network fails at link: the arduino-pico core's pinMode, digitalWrite and initVariant call into the CYW43 driver, and those symbols are undefined. The Pico 2 W (rpipico2w) links the same sketch.
The cause looks to be the board file: rpipicow.json does not carry the two defines that compile the driver wrappers, and rpipico2w.json does.
$ fbuild <project> build -e rpipicow -v --no-timestamp
build error: build failed: arm-none-eabi-gcc link failed:
digital.cpp:(.text.pinMode+0x2): undefined reference to `cyw43_pinMode'
digital.cpp:(.text.digitalWrite+0x2): undefined reference to `cyw43_digitalWrite'
init.cpp:(.text.initVariant+0x2): undefined reference to `init_cyw43_wifi'
Cause
In arduino-pico, cores/rp2040/cyw43_wrappers.cpp defines those three functions inside #if defined(PICO_CYW43_SUPPORTED), and both variants' digital.cpp and init.cpp call them unconditionally. The core's boards.txt sets the define for both boards:
Activity