-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
The various CMake link library options pico_cyw43_arch_... only have any affect if the CMake call defines PICO_BOARD=pico_w. Otherwise they default to no-op.
This causes problems if (for example) the Pico W is plugged into a VGA Demo Board. Creating a vgaboard_w.h file, which is a copy of vgaboard.h, but with the #include "boards/pico.h" replaced by #include "boards/pico_w.h" does not resolve the problem.
The simplest work around I have found is to include the following very early in the CMake file:
set(PICO_CYW43_SUPPORTED 1)
I have yet to work out whether this needs to be above pico_sdk_init() or above include(pico_sdk_import.cmake).