An Easy Method to Compile the Raspberry Pi Pico C/C++ Code using VSCode and Pico SDK in Windows 10

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 63

  • @MyVanitar
    @MyVanitar  10 месяцев назад +5

    An Easy Method to Compile the Raspberry Pi Pico C/C++ Code using VSCode and Pico SDK in Windows 10

  • @krios2905
    @krios2905 3 месяца назад

    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
      @MyVanitar  3 месяца назад

      Glad it was helpful!

  • @mh7369
    @mh7369 3 месяца назад

    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. 👍👍👍

  • @peterguggenbach4264
    @peterguggenbach4264 7 месяцев назад

    Best explanation I found to make this setup, congratulation!

    • @MyVanitar
      @MyVanitar  7 месяцев назад

      Glad to hear that!

  • @senoleker
    @senoleker 2 месяца назад

    2:07 Where did you click with the mouse? :)
    Thank you for this helpful video.

  • @luizcastro7039
    @luizcastro7039 10 месяцев назад +1

    great! thank you. Can you teach how to transfer to pico? I am trying platformio but it does no talks with SDK

    • @MyVanitar
      @MyVanitar  10 месяцев назад +2

      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

    • @luizcastro7039
      @luizcastro7039 10 месяцев назад +1

      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

    • @MyVanitar
      @MyVanitar  10 месяцев назад

      it's simple. just drag and drop (copy-paste). Just press the BOOT button and then the RESET button. Pico enters the Flash mode.

  • @bullygram
    @bullygram 8 месяцев назад +5

    In an nutshell! This is what I wanted

    • @MyVanitar
      @MyVanitar  8 месяцев назад

      You're welcome

  • @dabunnisher29
    @dabunnisher29 6 месяцев назад

    This is a great tutorial man. Thank you sooooooo much!!!!

    • @MyVanitar
      @MyVanitar  6 месяцев назад

      Glad you liked it!

  • @Aleziss
    @Aleziss 2 месяца назад

    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 !

    • @MyVanitar
      @MyVanitar  2 месяца назад

      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)

    • @Aleziss
      @Aleziss 2 месяца назад

      @@MyVanitar I get a bunch of files but no .uf2 file... what am I missing so it does compile that file ?

    • @MyVanitar
      @MyVanitar  2 месяца назад

      so it is not compiled correctly, for your first experiment, just use my provided "main.c" and CMake files

    • @Aleziss
      @Aleziss 2 месяца назад

      @@MyVanitar ok I will try again ! thanks for the help !

  • @elektron2kim666
    @elektron2kim666 4 месяца назад

    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.

    • @MyVanitar
      @MyVanitar  4 месяца назад +1

      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.

  • @hadiborjkhani8462
    @hadiborjkhani8462 5 месяцев назад

    It is awesome, thanks for creating this video!!!

    • @MyVanitar
      @MyVanitar  5 месяцев назад

      Glad you liked it!

  • @juanc.morales7060
    @juanc.morales7060 5 месяцев назад

    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

    • @MyVanitar
      @MyVanitar  5 месяцев назад +1

      it should work, follow the same process as I described. please do your first test with my main.c and CMake files

  • @glukasc
    @glukasc 6 месяцев назад

    Thank you! C with Pi Pico disenchanted ;-)

  • @mauriciorodrigues9991
    @mauriciorodrigues9991 10 месяцев назад +1

    Thanks.

    • @MyVanitar
      @MyVanitar  10 месяцев назад

      You're welcome

  • @eerrfanshayyestehh2069
    @eerrfanshayyestehh2069 10 месяцев назад +1

    Nice

  • @akhin5199
    @akhin5199 5 месяцев назад

    Bro do using easy eda... Its much expense😢

    • @MyVanitar
      @MyVanitar  5 месяцев назад

      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_RIGHT
    @RECOLONIZE_RIGHT 9 месяцев назад +1

    getting -G Ninja excited with code: 1 error

    • @MyVanitar
      @MyVanitar  9 месяцев назад

      are you sure you followed all the steps correctly?

    • @laureanoquiroga9632
      @laureanoquiroga9632 5 месяцев назад

      @@MyVanitar Hi! I have the same error code of this guy, i've followed every step, do u know what could be the problem?

    • @MyVanitar
      @MyVanitar  5 месяцев назад

      @@laureanoquiroga9632 do you use my sample code? which command line you use to run the VSCode. the problem of that guy has been solved

    • @laureanoquiroga9632
      @laureanoquiroga9632 5 месяцев назад +1

      @@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!

    • @MyVanitar
      @MyVanitar  5 месяцев назад

      @@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

  • @rikilshah
    @rikilshah 7 месяцев назад

    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.

    • @MyVanitar
      @MyVanitar  7 месяцев назад +4

      please do not comment without watching the video!

    • @rikilshah
      @rikilshah 7 месяцев назад +1

      @@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?

    • @MyVanitar
      @MyVanitar  7 месяцев назад +5

      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!

    • @hadiborjkhani8462
      @hadiborjkhani8462 5 месяцев назад

      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.

    • @blackstorm7481
      @blackstorm7481 5 месяцев назад

      This crap doesnt work correctly. I recomend to use only manual installation.

  • @hp2073
    @hp2073 10 месяцев назад +2

    Thank you. Easy to follow 🫡

    • @MyVanitar
      @MyVanitar  10 месяцев назад

      You're welcome!

  • @yusukeurameshi9604
    @yusukeurameshi9604 6 месяцев назад

    Thanks

    • @MyVanitar
      @MyVanitar  6 месяцев назад

      Thank you very much. I hope others also follow you