PICO W blinky compile error

Sysprogs forums Forums VisualGDB PICO W blinky compile error

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35888
    roujesky
    Participant

    I created a project from the sample PICO W the blinky.   I chose the 1.5.1 SDK.  I did not modify anything.  I am connected successfully to a Pico-Probe.  I get build errors.  the first is

    Error #error must specify support pico_cyw43_arch architecture type or set PICO_CYW43_ARCH_HEADER PicoSDKProject4 C:\Users\RobertOujesky\.pico-sdk\sdk\2.0.0\src\rp2_common\pico_cyw43_arch\include\pico\cyw43_arch.h 30

    and I also get

    Error No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. PicoSDKProject3 C:\Users\RobertOujesky\source\repos\PicoSDKProject3\CMakeLists.txt 3

    Here is the simple blinky program

    #include “pico/stdlib.h”
    #include “pico/cyw43_arch.h”

    int main() {
    stdio_init_all();
    if (cyw43_arch_init()) {
    printf(“Wi-Fi init failed”);
    return -1;
    }
    while (true) {
    cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);
    sleep_ms(250);
    cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
    sleep_ms(250);
    }
    }

     

    Not sure what to do….

     

    not sure how to proceed

     

    #35897
    support
    Keymaster

    Hi,

    The “must specify support pico_cyw43_arch architecture” error could be triggered when trying to build Pico W samples for the regular Pico board or vice versa. Please make sure you select the PICO_W target in the wizard if you are using Pico W samples.

    The other message looks like something in the SDK is broken. You can try resetting the SDK installation as follows:

    1. Completely delete the toolchain directory.
    2. Completely delete all PicoSDK checkouts from %LOCALAPPDATA%\VisualGDB\PicoSDK.
    3. Completely delete CMake from %LOCALAPPDATA%\VisualGDB\CMake
    4. Restart Visual Studio.
    5. Create a new Pico SDK project completely from scratch, letting VisualGDB download all necessary tools.

     

    #35898
    roujesky
    Participant

    thanks!   User error.   did not selecte PicoW board 🙁

     

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.