How to setup VS Code for raspberry pi pico w Windows

Тәжірибелік нұсқаулар және стиль

This video covers setting up the build environment for programing the raspberry pi pico w with C/C++.
The same process is used to program both the Raspberry pi pico, and the Raspberry pi pico W.
If you already have the build environment set up to program the pi pico, and only need to figure out how to compile the examples for the raspberry pi pico W
skip to the end of the video where I show you the necessary changes to the CNakelists file..
The required packages are...
ARM GCC compiler "developer.arm.com/downloads/-..."
CMAKE "cmake.org/download/"
Visual Studio Build Tools "visualstudio.microsoft.com/do..."
Python "www.python.org/downloads/"
GIT "git-scm.com/download/win"
Visual studio code "code.visualstudio.com/download"
The Git commands are...
"git clone -b master github.com/raspberrypi/pico-sdk"
"git submodule update --init"
"git clone -b master github.com/raspberrypi/pico-e..."
The lines you need to add to CMakelists to allow the pico w examples to compile are..
"set(PICO_BOARD pico_w)"
"set(WIFI_SSID "Your Network")"
"set(WIFI_PASSWORD "Your Password")"
"set(TEST_TCP_SERVER_IP "192.168.0.1")"
Change the above values to suit your needs.
If you found this video helpful please don't forget to like and subscribe.

Пікірлер: 25

  • @gabrielkevers8591
    @gabrielkevers85914 ай бұрын

    replace "git submodule update --init" with commande "git submodule init" and "git submodule update" if error 'error: pathspec '--init' did not match any file(s) known to git"

  • @MyFlippinLife
    @MyFlippinLife2 жыл бұрын

    Woahhhh 800 subs awesome

  • @CircuitSecrets

    @CircuitSecrets

    2 жыл бұрын

    Thanks man, I took a vacation from it for a while, but I am back. Good to see you still around!

  • @MyFlippinLife

    @MyFlippinLife

    2 жыл бұрын

    @@CircuitSecrets been uploading like crazy man

  • @CircuitSecrets

    @CircuitSecrets

    2 жыл бұрын

    @@MyFlippinLife That's awesome! I see you are over 5k subs, that rocks! I just got back into making videos again. I stocked up on parts not long ago, going to try to make some more original projects and videos soon. Right now I am trying to cover some of the quirks and some how to videos about the new raspberry pi pico W micro controller. That's been the focus this month, I did a video on C.B. radio basics because someone requested it. I see you are focusing on Halloween stuff now, that's cool. I might do some prop animation control stuff in September or so.

  • @MyFlippinLife

    @MyFlippinLife

    2 жыл бұрын

    @@CircuitSecrets we need to chat I’ve been building my own animatronics

  • @CircuitSecrets

    @CircuitSecrets

    2 жыл бұрын

    @@MyFlippinLife Right on! Ill message you on facebook.

  • @welvaardsbuik
    @welvaardsbuik7 ай бұрын

    got quite far but encoutering this. -- Configuring incomplete, errors occurred! [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -C C:\pico\pico-sdk\pico-examples -SC:/pico/pico-sdk/pico-examples -Bc:/pico/pico-sdk/pico-examples/build -G Ninja exited with code: 1

  • @_winston_smith_
    @_winston_smith_ Жыл бұрын

    Right at the end where of this video it tells you how to set the environment variables to build the TCP examples. I found that using set for all four did not work. Instead I had to use the following: set(PICO_BOARD pico_w CACHE STRING "Board type") add_compile_definitions(WIFI_SSID="yournetwork") add_compile_definitions(WIFI_PASSWORD="yourpassword") add_compile_definitions(TEST_TCP_SERVER_IP="youripaddress")

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    Strange, I will have to look into it. Maybe something has updated, but set seemed to work for me.

  • @johnrhurt
    @johnrhurt2 жыл бұрын

    Sorry about NOOB question but I did add the lines at the end of video to compile the Pico W examples but this did not compile the Pico W examples. Am I missing something?

  • @CircuitSecrets

    @CircuitSecrets

    2 жыл бұрын

    Not a noob question at all, Maybe I was not as clear at the end as I should have been. After you add the lines and set the values as you need, save the CMakelists file. Then vs code should reconfigure the project enabling the pico w examples to be built when you run the build by clicking the build button at the bottom of vs code.

  • @johnrhurt

    @johnrhurt

    2 жыл бұрын

    @@CircuitSecrets Yayy! Worked perfectly. Thank you.

  • @CircuitSecrets

    @CircuitSecrets

    2 жыл бұрын

    @@johnrhurt Awesome! You are very welcome.

  • @dawid4190
    @dawid4190 Жыл бұрын

    Looks like the Visual Studio Build Tools requires a valid VS license - for those who wants to use it commercially.

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    Yeah, education use is OK, but commercial licenses are different.

  • @danpolniak
    @danpolniak Жыл бұрын

    ok for the most part, but just ok. the speed up of the video makes it very difficult to follow and wasnt needed. and you go lazy at the end, instead of showing how to do it, just talked about it. had to search else where to get these magical pico examples. blowing through some of the steps at 3000x speed seems pointless (if you cant make it out whats happening whats the point of adding it to the video), some of them took 30 times to try and pause the video just at the right moment so you can see what you clicked.

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    Thank you for the feedback, I will try to use it to improve my content in the future.

  • @gautombose4172
    @gautombose417210 ай бұрын

    Hi. There is now one click download and setup available.

  • @johnluffman7954

    @johnluffman7954

    3 ай бұрын

    Could you please share the one-click tool? Thanks.

  • @robn2497
    @robn24972 ай бұрын

    why does the pico W need that information to compile a blink sketch?

  • @CircuitSecrets

    @CircuitSecrets

    2 ай бұрын

    I think its more the build tools that need all the excess information.

  • @robn2497

    @robn2497

    2 ай бұрын

    @@CircuitSecrets thanks I finaly got picoW working after about 4 hours pico_cyw43_arch_none was missing from the links

  • @endlesslybrowsing6559
    @endlesslybrowsing6559 Жыл бұрын

    Looks like it would be easier to just use a Linux VM as it appears after watching a bunch of videos the stuff is much more streamlined on Linux

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    Yes, there are easier ways to go about setting up to program the pi pico series. Linux is an option, using the Arduino IDE and the right library is another to start programing it fast.

Келесі