Getting Started with the Pico W C/C++ SDK

preview_player
Показать описание
#raspberrypi #pico #raspberry

Read the written version here:

▬ Support us! ▬▬▬▬▬▬▬▬▬▬

We stock the latest products from Adafruit, Seeed Studio, Pimoroni, Sparkfun, and many more! Browse our shop:

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
Intro 00:00
VMware 01:46
Installing Ubuntu in the VM 03:25
Installing VScode 05:30
Installing git 05:48
Cloning the Pico SDK and Examples 06:18
Initiating the TinyUSB and WiFI chip Submodules 07:08
Installing the toolchain 08:07
Building an Example 10:16
Make-ing a UF2 file 13:30
Moving the UF2 file onto the Pico W 14:20
Setting up your own project 15:51
Including the provided SDK cmake file 18:00
Back to the CMakeLists explanation 18:39
Including the header file required by the WiFi chip 20:44
Creating a build folder and building the project 22:40
Make-ing the UF2 23:25
Installing minicom 24:06
Moving the UF2 to the Pico W 24:37
Reading the serial monitor using Minicom 25:06
Success! 25:58

▬ References and links ▬▬▬▬▬▬▬▬▬▬

▬ Disclaimer ▬▬▬▬▬▬▬▬▬▬

All prizes not claimed within 6 months will be put back into the prize pool. Please note that some items may require payment of customs charges when they arrive in destination countries.

Also, note that if something has a battery in it, it pretty much always means stress with sending them. These rules seem arbitrary and subject to constant change, so where possible, we'll ship things without the batteries and let you find one locally.

Electromaker contests are separate from the Electromaker store (I literally go to the post office to send prizes) so beyond giving tracking details there isn't a lot we can do if something goes missing.
Рекомендации по теме
Комментарии
Автор

For this tut being a year old, it still works well! The only thing I did differently is that I had to call cyw43_arch_init() or turning on/off the led would throw an error. The blink example for the pico w was moved to the wifi folder inside of the pico_w folder in pico-examples, as well as the lwipopts.h if I am remembering correctly. Very clear and coherent video. Thanks!

Lucas-pcrt
Автор

Keep it up buddy. To the point, that's what we want.

stylesoftware
Автор

Man, Ive been fighting with this stuff for long and this videa was a God send....
Thanks Electromaker for making it and so detailed!!! Subscribed...

uilh
Автор

Good introduction to the Pico-W sdk and how it differs from the vanilla sdk. Thanks.

wwok
Автор

Many thanks mate, you made it easy to follow.

Alamartec
Автор

few things for people that will watch it now: blink example is in pico_w/wifi/blink, for me the blinking doesn't work if there isnt if(cyw43_arch_init()){....}, i also think that it's is better to declare PICO_SDK_PATH in bashrc so you don't have to do that every time and you should declare it relative to home directory, not directory you are currently in. Error lines for includes will disappear if you configure cmake for your directory, also it is worth adding set(PICO_BOARD pico_w) in CMakeLists

maciekrostocki
Автор

Amazing, I am looking for a good source to start programming my pico with the native SDK

usefulelectronics
Автор

Thanks for the video! It is a good introduction to get started with the picow board.

sotw
Автор

Thanks a lot! These simple steps worked for both the pico W and the Tiny 2040!

jacksparrow
Автор

Thanks, might be able to actually start using the native SDK instead of Arduino.

Did you ever get rid of the error squiggles on the includes or are you just ignoring them?

ApusApus
Автор

It compiled the examples but when I try to compile the flash print it crashes on some assembly file. Can you share your VMware machine?

ddienst
Автор

hey friend, not sure why but this video is only available in 360p.

JHess
Автор

How do you debug and step through your code ?

EdwinFairchild
Автор

So you need help from the Dons at Bletchley Park to flash an LED using C on the Pico. Unbelievably complicated.

robertbox
Автор

You don't need to use a VM to program the Pico. You can do it on Windows just fine. And you're making this harder for beginners by navigating around in terminal instead of a folder explorer.

captainpumpkinhead
Автор

cmake -DPICO_BOARD=blink..
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.


CMake Error: The source directory does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI. --- Why Iam getting this I couldnot solve this

ManishankarS-re
Автор

Where was this tutorial 6 hours ago!?

You ended up making all the same decisions/trade-offs I preferred (except I tried to prove to myself I could build on my mac w/o a VM), but you helped point me to the PICO_W SPECIFIC SECTION OF PICO-EXAMPLES 🤦‍♂. The only thing I could find online was "oh, working with the LED is so easy just type this line of MicroPython" ...but I'm trying to get better performance with the C SDK & for some reason the LED is fundamentally different in the W? No warnings or anything until I EVENTUALLY discovered the -DPICO_BOARD option of cmake THANKFULLY. I kept trying to flash the original blink.c for my hello world & I was scrambling in every direction. No idea why it was so different that they couldn't just redefine "PICO_DEFAULT_LED_PIN", but I trust there's a more fundamental difference in the hardware. EVEN IF I noticed the pico_w/ directory (which I wouldn't've), I never would've looked beyond wifi/

Thanks for saving my day!

OpTicThErmal