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
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).
The text was updated successfully, but these errors were encountered:
If you are building from command line, no problem. But VSCode uses its own cmake extension to lint errors. That extension has no setting to pass extra arguments. Only fix is set(PICO_CYW43_SUPPORTED 1) in cmakelists.txt.
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:
I have yet to work out whether this needs to be above pico_sdk_init() or above include(pico_sdk_import.cmake).
The text was updated successfully, but these errors were encountered: