Wow. That's a lot of configurations you had to go through. Thanks for going through all this hassle so that it is easy for people after you. You really are an expert. PS... your KiCAD videos are some of the best tutorials on all of KZbin.
@ShawnHymel3 жыл бұрын
It is pretty involved :) There's also the option of using PlatformIO that I didn't mention (community.platformio.org/t/official-platformio-arduino-ide-support-for-the-raspberry-pi-pico-is-now-available/20792). It allows you to use the Arduino framework (built on top of mbed OS for the Pico) within VS Code. I'm glad to hear you enjoyed the KiCad series, thank you!
@elgeekcurioso51503 жыл бұрын
If you compare it to modern programming languages indeed it is. But once you know them they are not so many
@micahmccloud44083 жыл бұрын
For a newbie that just bought his pico 5 days ago and have no prior code experience this was a struggle to get through. The failures I encountered were my own fault but I finally got that little green booger to flash!
@diego_roca Жыл бұрын
When you are starting with the Pico, the best option is Micro-python way easier to install and use and is all what a newbie would need
@sdp84834 ай бұрын
For anyone getting into this now Raspberry Pi has an official VScode extension that simplifies this. It's in pre-release and made getting to blinky super easy.
@sergitolstolutskey96973 ай бұрын
your advice totally helped - it was so much easier to use the VS Code Extension: Raspberry Pi Pico v0.14.0 (pre-release) - it has a fillable form to make the build files and config - perfect for noob like myself
@YoshiplayerX3 ай бұрын
Ty so much for this, is truggled setting this up for many hours. Now it its working finally and i can start
@TomasHornych7 күн бұрын
Only when it works... BUT for some pico boards it is nightmare a it is imposible to upload program. Maybe some problem with OpenOCD.. but i dont know. All forum answers not working. GOLD arduino
@tehmudjinkhan22073 жыл бұрын
I was just a few hours ago browsing the raspberry pi pico and wondered if I could use it and still program in C, and now I see this video.
@stryderx13 жыл бұрын
Indeed you should program it in C, otherwise you're losing a lot of performance off this platform.
@rowifi2 жыл бұрын
Jesus... I thought the idea was to make coding easier these days. That setup was crazy,.
@orgtyu8 ай бұрын
Cmake is incredibly useful when managing long term support code bases This helps us having a detailed control in compilation process to avoid deviations when compiling code updates If you dont care about it (non professional targets) then just use micro python
@KillJDАй бұрын
@@orgtyu That's a whole different language lol. If someone wants to program in C then learning this is crucial.
@DanMV74002 жыл бұрын
I followed your guide to use MinGW because the normal way I just could not get working! Thank you so much for that excellent guide, now all is working well.
@wb7ond3 жыл бұрын
This is cool, I followed the directions except I used cpp and a D: drive, just a couple little hick-ups of my own doing, but easily solved. Great Video, worked like a champ. Had some failed attempts with other tutorials, this just worked... This video is a jewel among all the Python, python, python everywhere I look python..... Thanks Shawn...
@zokisavic30632 жыл бұрын
You're the best. I couldn't find IDE for RP Pico, but with this tool chain and SDK, this is fantastic solution and very simple to setup on Win10.
@comicbookkannada9836 Жыл бұрын
Is it worked in windows 10. when i run the blink program some errors are coming like unknown cmake command cmake _minimum_required not found. what u got terminal output. if u got no errors please tell me how u get it.
@danstorm1002 жыл бұрын
Your web page and this video provided a working tool chain for the pico. Very usefull.
@StevenCookFX2 жыл бұрын
Followed your tutorial and at first I lost the port. I did a copy and paste of your code and now its working.
@Cptnbond3 жыл бұрын
Awesome as usual.
@avivarma65643 жыл бұрын
I’d recommend WSL with VS Code for windows. Definitely more complex but well worth it
@comicbookkannada9836 Жыл бұрын
have you tried.?? is it worked.??? I tried in windows 10, it doesn't worked. Please tell me. Now im planning to use the method u told. Please tell me your method worked.???
@streaMania Жыл бұрын
Finally I was able to run my C program on pico, thanks. I was losing it.
@PATRIK67KALLBACK3 жыл бұрын
Great video! I have started to get so frustrated of setting upp the build environment for the PI PICO. How hard can it be I tell myself and fail for the n:th time. So thank you for the input. I will take your advice and try again this evening...
@debsarkar48936 ай бұрын
Thank you bro amazing tutorial!! With your I got the basic idea and did it as u said and managed to get it working. Afterwards I managed to set it up with Visual Studio 2022 IDE (because I like it more, Personal Preference) using its default cmake project (no visual GDB), had some experience beforehand with those Ninja and CMake things.
@KeyserTheRedBeard2 жыл бұрын
incredible video Digi-Key. I smashed the thumbs up on your video. Keep on up the fantastic work.
@JG-nm9zk3 жыл бұрын
already started going ahead setting up picoprobe. thanks for the great intro. I'll probably be returning to the kicad tutorials when I get around to making my project more permanent
@puyansude3 жыл бұрын
Excellent tutorial 👍👍👍
@ch940863 жыл бұрын
Thanks for the overview! C seems much better than Python for most realistic microcontroller applications, so good to show that. I'm looking forward to part 2 with debug, I assume using a second pico as hardware debug interface? I used to be annoyed with the rubber room and straightjacket of the Arduino IDE, but cmake setup can be complex at the other extreme. Thanks for demonstrating that. Maybe we'll get better tools to do that.
@shawnhymel76473 жыл бұрын
You are correct...I'll show how to load the picoprobe firmware onto a second Pico to use it as a debugger in the next episode :)
@4mb1279 ай бұрын
Your videos are a life saver.
@markderlo212 Жыл бұрын
thank you for a video, appreciated; now I know I shall keep away from Rp2040 since the setup complexity is on a border of pure madness. For example on LPCxpresso to dobtgecsame thing one must instal for example LpcXpresso IDE, or Keil uVision , with approx 30 example small projects included snd then choose Blinky project , click Build icon and then Debug and that’s it; program runs and led blinks and source code files are ready to furher editing.
@danieldc88412 жыл бұрын
If you want this on windows, the documentation links to a github project that automates all of this. I'm trying it out now, but see section 9.2. Building on MS Windows
@TheSolderingGuy0072 жыл бұрын
Detailed yet to the point. Great Job !
@Gin-toki3 жыл бұрын
Apparently the site has changed, because when I go to the "documentation" tab at the bottom of the raspberry pi pico site (as seen 0:45) it no longer leads to the tutorial site but just to some documents. And if I type in the link directly as shown in the video, it just redirects to raspberry pi's documentation search site. Any information about where I can find the same info/site as shown in the video here?
@hoppynaki2 жыл бұрын
wow. That's so ridiculously complex I can't see many hobbyist doing all that.
@Hoops-Senior Жыл бұрын
Oh, how I miss those days when one simply installed Microsoft C (from floppies), #include a couple of header files and could write/compile/run ANSI C, literally as simple as that. Of course, there were make-file options for more complex programs, but all this messing around to get a printf(); and toggle a GPIO pin to work... crazy!
@sebastianabrilvera50802 жыл бұрын
Thanks for the video!!! I have a question that I still can't solve, how can I set in visual code a different RP2040 based board, such as the adafruit feather. Thank you very much.
@savejeff153 жыл бұрын
The configuration process reminded me of the uncountable frustrating hours trying to get into embedded coding with c++. I have left make files and manual compilation stuff behind me. Hope the Arduino Core gets more feature-complete in the next month. I think processor and manufacturer proprietary SDKs are terrible. you are forced to use a supported IDE and there are little documentation and examples online. It's just not productive.
@bitdecay77733 жыл бұрын
How did you get bash to inherit all the Windows paths and variables in VSCode?
@himanshujangra25993 жыл бұрын
Please keep up the series of cpp for pico
@larrybud2 жыл бұрын
Even the pico documentation is out of date for the windows toolchain. Geez, I'll just go back to my attiny2313 on assembly, that was way easier to set up!
@diegoporras77692 жыл бұрын
Excellent video. Thanks!
@DeLaCruzer11 Жыл бұрын
The problem programming in c/c++ sdk is that you wont get the convenience of using premade libraries for all different kinds of sensors out there as oppose to the Arduino IDE where almost every sensors and modules ever made there is a library for it.
@leoribg Жыл бұрын
Great explanation!
@MuhammadDaudkhanTV1003 жыл бұрын
Very good working
@madGambol Жыл бұрын
I'm having trouble following: at about 11:40, you say "at the bottom, select the 'kit' button ...". I don't have that at the bottom. What makes that button appear? Thanks! I was following OK up to that step.
@own1118 Жыл бұрын
hi, thank you verry much for this video. I work on Linux and I have a certain pb at the end of the part, when i copy and paste the .uf2 programm, it works, the led swtchs state between on and off but my pico disappeared from my usb. I mean i don't know where it is, i can not find it and when i use lsusb it is not detected... Someone can help me pls?
@sir.niklas20903 жыл бұрын
I am using the Windows WSL Ubuntu, and if your doing so there will be a warning but I just ran the setup script and it went just fine.
@Tiro25072 жыл бұрын
Ok....so in order to make my cute little pico understand my language of choice i need a master degree in informatics. Is there an easy way as well like the platformio Add On for VS? Or did this also need the whole thing as well?
@robotisim2 жыл бұрын
People who are finding it difficult . To understand the importance of Cmake Files: - Compile C++ code using terminal ( command line ) - Linked multiple files into one output ( linking ) Why install sdk and write code on PC : - install raspbian OS and vscode - Write code and run it you will find that writing code on PC and compiling for Raspberry pi is a 60 fps code writing decision :)
@gabrielfienco25312 жыл бұрын
I follow the getting started guide.. the first 2 times everything ok.. now i think my raspberry is dead hehe. Any suggestions ??? I think buying one will be better haha
@darkchoclate2 жыл бұрын
The best way i can find to avoid the hassle is to use wsl in windows 10 and wslg in windows 11. It really streamlines the experience, specially with vscode supporting remoting into wsl...
@mpiercebgtek2 жыл бұрын
Hi Shawn, great videos. I'd like to see one about setting up Vscode to program in C and C++ on the raspberry pi and how to set up the launch, task files etc. Especially to bring in 3rd part libraries (like raylib).
@cernejr2 жыл бұрын
Really nice video. Is there a Pico-like board where one does not have to unplug the cable all the time?
@whstark2 жыл бұрын
add a rest button or a switch on the power
@ralgha2 жыл бұрын
I use a USB hub that has power switches for each port.
@yahmk39782 жыл бұрын
Thank you!
@mezmerizer02662 жыл бұрын
Lol this video is like telling someone it's easier to remove their teeth with a sledgehammer than dental tools.
@EK-xj1cq2 жыл бұрын
Must the installation be such complicated? Isn't the PlatformIO better solution to just start, is it?
@PatrioticGestalt3 жыл бұрын
Here's my 0.83 cents (ie a dime a dozen) idea. Program the Pico to be an 8-bit CPU (6502, Z80, or 6809). Then wire it to a Commodore 64, ZX Sinclair, or Tandy Color Computer, respectively.
@onurytc3 жыл бұрын
I've got two issues. 1) Make does not work on Git Bash. Error is "mingw32-make: *** [Makefile:90: all] Error 1" 2) I've editted includePath for VS Code, however when build the file I get a include path error. fatal error: pico/stdlib.h: No such file or directory #include "pico/stdlib.h"
@onurytc3 жыл бұрын
The problem was that I had already a MinGW compiler in a different directory. I've removed it from my system and now I can make build files using Git bash. The second problem is about includePath. I've added C:/VSARM/sdk/pico/** and it's fixed.
@andrewbednar72512 жыл бұрын
I followed there instructions on my Mac OS which is using Monterey 12.5 unfortunately when I plug in the RP2040 I don't see any serial device under /dev. Holding boot select does work for uploading the .uf2 file though. Is there a missing driver for USB Serial on Mac?
@davutkaraca3152 жыл бұрын
thanks for the awesome video. When connect the Pico to usb in boot mode, in device manager i can not see the com number and it appears with an unkown device. after i drag i drop the uf2 file automaticallt pico starts blinking but this time it disconnets and i can not see even unknown device name. so i can not work with putty.
@DanielMelendrezPhD2 жыл бұрын
I think you were missing the stdio_init_all();. Happened to me
@sabatajmirriyahi4290 Жыл бұрын
I don't know how can I use pico-playground folder. There was no information about that!
@amirabdjamalnuvending56542 жыл бұрын
hi guys...I follow exactly the instructions. But I make have this problem from the git bash terminal in vscode. Anyone can help me to resolve this problem? $ make 'C:/Program' is not recognized as an internal or external command, operable program or batch file. mingw32-make: *** [Makefile:90: all] Error 1
@benetto2333 Жыл бұрын
I have fixed this by moving my mingw folder from Program Files to C:/ and editing the environment variables accordingly
@micah29362 жыл бұрын
How to program the microcontroller as a blank in a custom PCB?
@goosebyte2 жыл бұрын
I followed this to a T multiple times. It caused damage to my Ubuntu install and nothing will build for the 2040 anymore. Everything worked fine in the terminal until I tried to use this tutorial to use VS Code. Is there a single usable tutorial to get the pico sdk to function in an IDE??? Ideally without corrupting the laptop I use for all my work?
@MichaelFrankEllis3 жыл бұрын
Stumbling block (for me anyway): CMake lists are space, not comma, separated! Accidentally using commas can create mysterious looking errors because the comma will be appended to the preceding name. I typed "pico_enable_stdio_usb(${PROJECT_NAME}, 1)" and got the error message: "set_target_properties Can not find target to add properties to: blink," Took a lot of head scratching before I finally noticed it was looking for "blink," instead of "blink".
@mariottp81342 жыл бұрын
I´m using VS Code with PlatformIO. This is more nicer in my opinion
@shashankagarwal8042 жыл бұрын
Can you make a similar video with esp8266/32 sdk Their documentation is very confusing 😊
@cpakditno4n958 ай бұрын
Hello guy can anybody help me out i need to know WHERE in the datasheet of raspberry pi pico are the specs of general sink and source current of each input/output or groups of outputs, i have read it over and over and i cant find it, please help me out !
@Aman-to1nj2 жыл бұрын
Nice video man! Can you please make a good project using pico with your environment specifically with some external arduino libraries
@FedericoAllegretti3 жыл бұрын
is the "C:\VSARM\mingw" intended or is it a typo for "C:\VSARM\minigw" (missing "i")?
@ShawnHymel3 жыл бұрын
It should be "mingw"
@marc.lepage Жыл бұрын
FYI "mingw" stands for "minimal gnu for windows"
@Hackinside2 жыл бұрын
On Pico W the LED uses the WiFi chip gpio.has anyone managed to make it blink?
@HolyRoody6 ай бұрын
I do this and everything is great but it does not create a uf2 file at all. why?
@immunologymax3 жыл бұрын
Hi Shawn, very nice video. I followed your steps and I got this message "#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/pi/pico/pico-examples/blink/main.c)." I am using the raspberry pi. I hope you can help me to fix this, thanks!
@grantpeterson25243 жыл бұрын
I am having the same issue :( any luck with a fix?
@grantpeterson25243 жыл бұрын
I should specify, everything works all the way up until compiling and then I get “fatal error: pico/stdlib.h: No such file or directory
@peterbelanger4094 Жыл бұрын
@@grantpeterson2524 I have the same problem, something with how the PICO_SDK_PATH is configured in VSCode. I don't know how to solve it though. I'm stuck too. That part of the sdk setup and install tutorial was unclear.
@gautamarora94488 ай бұрын
Hey man, I followed through with it according to your guide and all, but the problem is that whenever I start to code in main.c as you do, I get path error, like #include errors and cannot open source file "pico/stdlib.h". What yo do now man?
@giorgiwiklauri18486 ай бұрын
I have same problem, it shows errors but still works.
@13mite Жыл бұрын
RP2040 looks unuseful if I need more time for setting the compiler than to do the software by itself
@YolunSonu12 жыл бұрын
What if I want to use both USB serial terminal and uart0 peripheral simultaneously? Can anyone help?
@rul1175 Жыл бұрын
What is that blink???? How can i get it?
@IconDevco2 жыл бұрын
1 week later, im still trying to figure out how to configure the darn thing
@philippelhaus3 жыл бұрын
Quality
@piconano3 жыл бұрын
Doesn't Platform IO do all that automatically? I thought it would!
@shawnhymel76473 жыл бұрын
It does, but I've had issues with PlatformIO in the past. I struggle with getting custom board definitions set up. I know people love it, and if it has Pico support, I say go for it. I figured it might be fun ("fun" is a relative term ;) for some to set up the toolchain from scratch. I know I learned a ton by doing it.
@BeefIngot3 жыл бұрын
@@shawnhymel7647 PlatformIO To be fair does sound a lot more intro than setting up the whole toolchain manually. It does have Arduino as the only available framework currently though, but I think that just means you need only not include Arduino.h and then its just C++ I think??
@piconano3 жыл бұрын
@@shawnhymel7647 I don't even have a pico. I use it on ESP32 and saves me a lot of hastle. VS Code + Platform IO is a good combination for many MCU and SBC projects. I love the dark mode theme for dev work. Arduino IDE screen is too harsh and loud.
@shawnhymel76473 жыл бұрын
@@BeefIngot You are correct--for just using PlatformIO, it's pretty easy. Once you include the Arduino framework, you can use C++ just like you would in the Arduino IDE. However, for the Pico, I *think* this means you're forced to use mbed OS (as that's now being shipped with the Arduino framework for the RP2040). I'm not 100% sure on that though. If so, it's a ton more overhead, especially if you don't need an RTOS.
@TheStrafendestroy Жыл бұрын
Can anyone help I did the bash script set up and when I try and create a program the file headers cannot be found
@Steven-jf4cs Жыл бұрын
left click on the squiggly line and choose Quick Fix. Find the Include Path text box and add ${env:PICO_SDK_PATH}/** This should help out.
@TheStrafendestroy Жыл бұрын
@@Steven-jf4cs Thank you for your reply I have done this but get and error in the extension configuration "Cannot find: /home/redchowder/pico/pico-examples/pico_w/blink/PICO_SDK_PATH}/ " . Its strange when I add the SDK_PATH to the environment variables and echo it, it will print the SDK_PATH. Soon as I open up a new terminal and try to echo the path I get a blank
@cryptic121-c3f3 жыл бұрын
Can we code in c++ on raspberry pi 3B plus model ? I dont see anywhere getting started with c++ for this model on the website.
@Hybrid.Robotics3 жыл бұрын
The Raspbery Pi 3 or 4 are not the same as the Raspbery Pi Pico. The Raspberry Pi runs a full operating system, like Linux, and is real computer. The Pico is a microcontroller that does not run an operating system like Linux.
@cryptic121-c3f3 жыл бұрын
@@Hybrid.Robotics i see. So can we say that pico is just like arduino ?
@MTBiSLiVE3 жыл бұрын
@@cryptic121-c3f pretty much yes. If you want to write C/C++ on RPi 3 (or 4 or any other than the Pico for that reason) check out how to setup a C++ Toolchain on Linux (looking for a tutorial based on a debian based distro will prbly make it easier). It isn't too hard since Linux comes with GCC preinstalled. Coding on the Pi can be hard though since you usually don't have a comfortable IDE like vscode and need to stick to something like Vim that works via SSH, which takes some (a lot) time to get used to.
@kaleygoode16813 жыл бұрын
Was hoping for C++20!😔
@9A4GEMilan5 ай бұрын
No way to get it working. Plenty of errors. Unable to understand where to install SDK actually. And libraries, it complains constantly it can't find libraries. I do specified exactly folder with all, but no hope.
@tweetyericsson3 жыл бұрын
Python it is then.
@gregorlekse88592 жыл бұрын
I think to many steps and to complicated. Needs to be more simple to program for average user
@jessefisher7013 жыл бұрын
Glad the board was only $5, without a raspberry pi 4 and using pc based Linux this was a huge waste of time. I understand why there are so few KZbin videos of folks using this for anything but loading your "examples". I would have thought Digi-Key would understand the need for a simple/classic lib support and setup. KISS always wins in the end.
@tanjiro32853 жыл бұрын
hey viewers like this vid. even if u got nothing or seen just 5min (like me )
@Hybrid.Robotics3 жыл бұрын
The Blink example will not build for me. I got errors on the CMakeLists.txt file. I followed the instructions so I expected this to work.
@xmenxwk3 жыл бұрын
All that for a blink program, nah I would avoid it until it gets uploaded in 1 or 2 steps.
@TomLeg3 жыл бұрын
But you can use Emmet to define a standard CMake file, and then just add a few detail adjustments.
@SantaDragon2 жыл бұрын
I feel this is nothing for beginners ...
@anatoliyv5607 Жыл бұрын
слишком запутано и сложно
@9A4GEMilan5 ай бұрын
You skipped too fast to follow all steps how to install SDK and libraries. I am so desperate by now.
@martingrillo6956 Жыл бұрын
in this great article: replace c with python
@tanjiro32853 жыл бұрын
mmmmuuuuaa
@JonitoFischer3 жыл бұрын
C or no C++ as it sucks... Use Zig or Rust instead!