An Easy Method to Compile the Raspberry Pi Pico C/C++ Code using VSCode and Pico SDK in Windows 10
@mh7369Ай бұрын
Thank you for a brilliant explanation, I've been struggling for a while to try and program the Pico using VS code with no success, came across your site today and gave it a try, it worked first time, excellent. 👍👍👍
@MyVanitarАй бұрын
Great to hear!
@krios2905Ай бұрын
Thanks for the great and concise walk through! I have spent so much time with others and not getting to the point, this one is by far the most efficient, well done!
@MyVanitarАй бұрын
Glad it was helpful!
@bullygram6 ай бұрын
In an nutshell! This is what I wanted
@MyVanitar6 ай бұрын
You're welcome
@peterguggenbach42645 ай бұрын
Best explanation I found to make this setup, congratulation!
@MyVanitar5 ай бұрын
Glad to hear that!
@Aleziss25 күн бұрын
I'm only missing one step, once compile is done, how to upload in the pico ? sorry, newbie here ! great and finally a short tutorial for once ! tnx !
@MyVanitar25 күн бұрын
go to the build folder and drag-drop/copy-paste the *.UF2 file into the Raspberry Pico folder (press the boot + reset to enter the flash mode)
@Aleziss24 күн бұрын
@@MyVanitar I get a bunch of files but no .uf2 file... what am I missing so it does compile that file ?
@MyVanitar24 күн бұрын
so it is not compiled correctly, for your first experiment, just use my provided "main.c" and CMake files
@Aleziss24 күн бұрын
@@MyVanitar ok I will try again ! thanks for the help !
@elektron2kim6662 ай бұрын
Might change from the Arduino IDE at some point, but the binaries I created helped me a lot for now and my Pico's run MMBasic (like small computers.) It's a confusing subject and you helped a lot with this video. MicroPython or CircuitPython doesn't appeal to me.
@MyVanitar2 ай бұрын
Thanks. I'm also a fan of Python, but if a library does not exist, it would be a problem. for the initial test, use my Cmake and main.c, but if you want to use the hardware features, you have to modify the Cmake, including libraries, path, headers, source files ... etc.
@glukasc3 ай бұрын
Thank you! C with Pi Pico disenchanted ;-)
@dabunnisher293 ай бұрын
This is a great tutorial man. Thank you sooooooo much!!!!
@MyVanitar3 ай бұрын
Glad you liked it!
@hadiborjkhani84623 ай бұрын
It is awesome, thanks for creating this video!!!
@MyVanitar3 ай бұрын
Glad you liked it!
@juanc.morales70603 ай бұрын
Hi man, this is a good way to program in C++, I´m also fan of using C++ and this ease that task, I like it very much. But I have a question: I use to program the Dev C++ from Embarcadero, is it possible to use this instead of VSCode? What is te consideration of one and another
@MyVanitar3 ай бұрын
it should work, follow the same process as I described. please do your first test with my main.c and CMake files
@luizcastro70397 ай бұрын
great! thank you. Can you teach how to transfer to pico? I am trying platformio but it does no talks with SDK
@MyVanitar7 ай бұрын
Thanks. It's simple, connect the Pico to the computer and boot it in Flash mode (a folder pops up in the Windows My Computer, similar to when you connect a USB flash memory). Then just Drag-drop or copy-paste the *.UF2 file to that folder. the Pico restarts itself and boots with the new code
@luizcastro70397 ай бұрын
thank you, I notice that this instruction was in your article.... I had not read it!! but, is there a way to do it automatically, like platformio does?@@MyVanitar
@MyVanitar7 ай бұрын
it's simple. just drag and drop (copy-paste). Just press the BOOT button and then the RESET button. Pico enters the Flash mode.
@mauriciorodrigues99918 ай бұрын
Thanks.
@MyVanitar8 ай бұрын
You're welcome
@hp20738 ай бұрын
Thank you. Easy to follow 🫡
@MyVanitar8 ай бұрын
You're welcome!
@eerrfanshayyestehh20698 ай бұрын
Nice
@MyVanitar8 ай бұрын
Thanks
@akhin51993 ай бұрын
Bro do using easy eda... Its much expense😢
@MyVanitar3 ай бұрын
to download my projects, you don't need to buy a license. just register on the website using the link in the video description
@RECOLONIZE_RIGHT7 ай бұрын
getting -G Ninja excited with code: 1 error
@MyVanitar7 ай бұрын
are you sure you followed all the steps correctly?
@laureanoquiroga96323 ай бұрын
@@MyVanitar Hi! I have the same error code of this guy, i've followed every step, do u know what could be the problem?
@MyVanitar3 ай бұрын
@@laureanoquiroga9632 do you use my sample code? which command line you use to run the VSCode. the problem of that guy has been solved
@laureanoquiroga96323 ай бұрын
@@MyVanitarSry, the problem was that i wasn't using your sample code, now i can run it but because im using the w version im having other issues, thanks for the help!
@MyVanitar3 ай бұрын
@@laureanoquiroga9632 if you use other hardware features of your Pico board, you must add the header in your C file and also inside CMake. it's not difficult, but a bit time-consuming on the first attempts. Pico examples might help you
@rikilshah5 ай бұрын
Raspberry foundation has released a standalone Windows installer which does all of this in one single click. I would recommend using that as it really eases the SDK setup process.
@MyVanitar5 ай бұрын
please do not comment without watching the video!
@rikilshah5 ай бұрын
@@MyVanitarDon’t be a jerk. I watched the video and that’s why I gave advice based on my experience. All the manual work of installing everything individually has been replaced by one click installer. What was wrong with my comment?
@MyVanitar5 ай бұрын
man, the first step of this tutorial is about installing that package, but that package is out of date, that's why we should update some parts. Please watch the video completely and be polite, I don't owe anyone!
@hadiborjkhani84623 ай бұрын
Yes, they released but there is no help for installation and scan for kits!!! This tutorial is amazing I could install with @MyVanitar help easily.
@blackstorm74813 ай бұрын
This crap doesnt work correctly. I recomend to use only manual installation.
@yusukeurameshi96044 ай бұрын
Thanks
@MyVanitar4 ай бұрын
Thank you very much. I hope others also follow you