PlatformIO - A True Alternative to the Arduino, MBED, and STM32 IDEs

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มิ.ย. 2024
  • There are hundreds of microcontroller boards available. And sometimes it seems that there is just as many frameworks and IDEs. The Arduino IDE is great in that it abstracts away a lot of the nitty gritty details about each and every board. But PlatformIO does all that and more , but not just for Arduino but also for MBED, STM32Cube, Zephyr, CMSIS, and more!
    Introduction to Android app development: www.dgitacademy.com
    Let Me Explain T-shirt: teespring.com/gary-explains-l...
    Twitter: / garyexplains
    Instagram: / garyexplains
    #garyexplains

ความคิดเห็น • 148

  • @MarlinFirmware
    @MarlinFirmware 3 ปีที่แล้ว +29

    Definitely a big fan of PlatformIO for development.

    • @ramimehyar481
      @ramimehyar481 ปีที่แล้ว

      Not if you have an stm32 and use the stmduino stuff! A trivial program will overflow your flash... blinking is all you can do with such huge build sizes.

    • @ScottLahteine
      @ScottLahteine 11 หลายเดือนก่อน

      @@ramimehyar481 FWIW - The build size for Marlin Firmware with a graphical display on a common STM32 board using STM32duino comes to around 150KB. Enabling several features may bring the build size over 256K, but most configurations result in a binary size under 256KB.

  • @Autotrope
    @Autotrope 3 ปีที่แล้ว +13

    Platformio is a great example of the awesomeness that open source can make possible. A coherent suite that wouldn't be possible without GCC and a bunch of specialist open source programming, upload and debugging tools for different platforms

    • @IsaacBG84
      @IsaacBG84 3 หลายเดือนก่อน

      Well yes , we would be stuck on one IDE per mcu manufacturer. One for ESP, another for microchip, etc.

  • @tookitogo
    @tookitogo ปีที่แล้ว +3

    12:15 Failure to upload automatically (requiring manually holding the BOOT button) is usually due to the EN line not being held low long enough, causing it to boot before the IO0 line has been pulled low. The fix is easy: add a 1 μF - 10 μF capacitor between EN and ground.

  • @penttiitkonen9765
    @penttiitkonen9765 ปีที่แล้ว +2

    Thanks Gary for your video. Based on that, I tried PlatfromIO for stm32 L031K6 with Arduino library, and the postive surprise was real. Debugging option still complements that configuration. It's really great that you made that video where that shows most important (well RP2040 is missing) microcontrollers that can be used under Arduino model.

    • @GaryExplains
      @GaryExplains  ปีที่แล้ว +1

      Thanks. The Pico wasn't out when I made the video, I guess a refresh might be in order!

  • @saxxonian
    @saxxonian 3 ปีที่แล้ว +7

    Vscode and the PlatformIO plugin does it for me! Thanks for the vid.

  • @rodoherty1
    @rodoherty1 3 ปีที่แล้ว +1

    That was great! More, please!

  • @bern047
    @bern047 3 ปีที่แล้ว +3

    Thanks for this Gary, really good tutorial please follow up on more examples using PlatformIO

  • @buffplums
    @buffplums 2 หลายเดือนก่อน +1

    This has been so helpful. Thanks so much Gary, subscribed ❤

  • @pvisit
    @pvisit 3 ปีที่แล้ว +2

    This is simply the best explanation about platformio on yt, bar none !!!

    • @soulife8383
      @soulife8383 3 ปีที่แล้ว

      void Bar(int i);
      void Bar(Bar* b);
      void Bar(bool b);
      main()
      {
      Bar(0);
      Bar(NULL); // same as Bar(0)
      }

  • @_M_a_r_t_i_n_M
    @_M_a_r_t_i_n_M ปีที่แล้ว +3

    Seeing Gary have Platform IO running so seemingly smoothly, it is making me want to go back and give it one more chance today. I'm not sure if it will have me abandon Visual Micro, but I would like it to. I have a lot of hopes for the PIO project.

  • @yusufcosgun4769
    @yusufcosgun4769 3 ปีที่แล้ว +3

    It's very good to listen and learn this from you

    • @1MarkKeller
      @1MarkKeller 3 ปีที่แล้ว +1

      The Professor professes professionally and proficiently.

  • @hootanbadii1799
    @hootanbadii1799 2 ปีที่แล้ว +1

    This Channel is awesome. Thanks Gary!

  • @dedankimathi7136
    @dedankimathi7136 3 ปีที่แล้ว +2

    Was jaded and left tech for good... But your videos brought me back and I rediscovered my love for tech and programming.

  • @stevetobias4890
    @stevetobias4890 3 ปีที่แล้ว +2

    I have downloaded this but haven't used it because it seemed daunting but this explains heaps. Thanks mate.

  • @dan_
    @dan_ 3 ปีที่แล้ว

    Thanks for the info - I hope I remember the existence of PlatformIO when I finally get some time to play around with my MSP430 Launchpads again!

  • @JoseFernandez-yz1sf
    @JoseFernandez-yz1sf 3 ปีที่แล้ว

    Thanks Gary, very informative I will use Platformio very soon.

  • @PATRIK67KALLBACK
    @PATRIK67KALLBACK 3 ปีที่แล้ว

    Thanks for the information, have not heard of it before but I will test it

  • @jmporter34
    @jmporter34 3 ปีที่แล้ว +2

    Thanks for the great tutorial ! I just went thru the same process as you with 3 different boards (Arduino Uno, ESP32 Devkit and Nordic nRF52-DK) and it took less than an hour to get them all working.

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว +1

      Glad it helped

    • @wizardy6267
      @wizardy6267 ปีที่แล้ว

      Good for you, I am using VSC on Ubuntu22.04, with nRF52480-DK on the MBed platform, the project intialize time is over 1 hour and there is no message so far I have no idea what is going on, and I re-tried for few times.

  • @EVguru
    @EVguru 3 ปีที่แล้ว +5

    I used PlatformIO to write some test code for a STM32 board and found it very straightforward to install and program via STLink. However, the system I was working on had an add on WiFi interface that would allow you to flash new code with a BIN file (convenient when the dev board is part of a system on another work bench). I could not work out how to configure PlatformIO to generate HEX or BIN files when using libopencm3 on STM32; It seemed I needed to edit a configuration file, but I did not seem to have that fie in the location described.

  • @marcovtjev
    @marcovtjev 3 ปีที่แล้ว +7

    Usually I change the range of processors less frequently than the time that these kind of platforms survive.

  • @prtechtalk416
    @prtechtalk416 ปีที่แล้ว +1

    Thanks Gary, Greate video

  • @fabg05
    @fabg05 2 ปีที่แล้ว

    Wonderful PlatformIO introduction, I also think is the best IDE for program microcontroller boards.

  • @marcelverhoeven3514
    @marcelverhoeven3514 5 หลายเดือนก่อน

    Well done!!!

  • @4Simmix4
    @4Simmix4 3 ปีที่แล้ว

    200.000 soon :) well deserved

  • @gabrielgraf2521
    @gabrielgraf2521 3 ปีที่แล้ว

    Wow, thanks for this Information. I will definitiv give it a try

  • @brandonedwards7166
    @brandonedwards7166 3 ปีที่แล้ว +1

    Glad it just works for you, been trying to use it for nodemcu esp32 for a while and keep getting compile errors. While searching I see people complaining for almost a year and no solution. Arduino IDE compiles fine.

    • @TimeFadesMemoryLasts
      @TimeFadesMemoryLasts หลายเดือนก่อน

      what's wrong specifically? I never had problems with nodemcu and all ESP32 boards I used (but didn't use it in the last few years)

  • @robertparenton7470
    @robertparenton7470 ปีที่แล้ว

    Thank You! From Frisco, TX

  • @JohnUllrey
    @JohnUllrey 3 ปีที่แล้ว

    Very cool stuff, thank you for the "explain".

  • @1MarkKeller
    @1MarkKeller 3 ปีที่แล้ว +4

    *GARY!!!*
    *Good morning Professor!*
    *Good morning fellow classmates!*
    Stay safe out there everyone!

  • @DRI1966
    @DRI1966 3 ปีที่แล้ว

    Thank You for this great video :)

  • @hariangr
    @hariangr 3 ปีที่แล้ว

    this is simply great

  • @GaryExplains
    @GaryExplains  3 ปีที่แล้ว +43

    FIRST!!!!

    • @yusufcosgun4769
      @yusufcosgun4769 3 ปีที่แล้ว

      Second!!

    • @clue0001
      @clue0001 3 ปีที่แล้ว +2

      Thanks for the video Gary! 👍 Very interesting indeed. I have yet to test PlatformIO with the STM32Cube framework and debug via SWD. Until now, I've only used it for the expressif framework with ESP32s.

    • @1MarkKeller
      @1MarkKeller 3 ปีที่แล้ว +1

      LOL!

    • @Hasan...
      @Hasan... 3 ปีที่แล้ว +3

      You just got lucky, you happened to run TH-cam just the time Gary upl.. oh wait

  • @rondlh20
    @rondlh20 3 ปีที่แล้ว +1

    Great video, lots of info I didn't know, platformio is extremely powerful and smart, and much faster than the Arduino IDE.

  • @marknoyanzin6108
    @marknoyanzin6108 2 ปีที่แล้ว

    Awesome!!!

  • @rd-tk6js
    @rd-tk6js 3 ปีที่แล้ว

    Interesting. Thanks !

  • @roysigurdkarlsbakk3842
    @roysigurdkarlsbakk3842 3 ปีที่แล้ว

    Thanks - good stuff :)

  • @Conservator.
    @Conservator. 3 ปีที่แล้ว

    Almost 200k subscribers!

  • @anthonycalia1317
    @anthonycalia1317 3 ปีที่แล้ว

    Nice Job.

  • @MarcusWolschon
    @MarcusWolschon 3 ปีที่แล้ว +7

    Using it since serveral years. Long before they switchs to VS-Code even.
    Their automatic, uncancelable updates have TWICE destroyed my working development environment that I just left alone for a year before needing to make some tweaks to production firmware.
    First time it took me 4 DAYS, second time 2 days to get back on track.
    The uninstaller DOESN'T UNINSTALL a hundret MB of broken code that f*** up the build system after a full uninstall + reinstall.
    It doesn't work with code on network drives (Character encoding crashes).
    It doesn't handle basic exceptions anywhere even if it's issues that are easy to handle gracefully or at least provide additional information to find the culprit (e.g. add the filename of a file that contains an undecodable character to the Exception).

  • @wayneyue1662
    @wayneyue1662 3 ปีที่แล้ว

    Awsome!

  • @riccardoanzil5998
    @riccardoanzil5998 2 ปีที่แล้ว +1

    Nice!! :)
    I am considering using PlatformIO as a replacement for my MPLAB IDE for PIC32 micros. This is for coding of our custom PCBs (NOT standard dev kits).
    Few quick questions:
    1) Is it possible to replace the ENTIRE MPLAB IDE with PlatformIO?
    2) How easy (or not) is it to set it up specifically for the PIC32 family?
    3) is there anything that MPLAB does that PlatformIO does not and/or that I should be aware of if switching over?
    Thank you

    • @marcioandreyoliveira
      @marcioandreyoliveira 5 หลายเดือนก่อน

      Did you get the answers to the questions?
      In affirmative case, could you share them?
      Thanks.

  • @dedelefoudu88
    @dedelefoudu88 3 ปีที่แล้ว

    looks very interesting tool

  • @alijabari8715
    @alijabari8715 2 ปีที่แล้ว

    youre just amazing

  • @RodHartzell
    @RodHartzell 5 หลายเดือนก่อน

    I had some trouble using some AdaFruit libraries with an Arduino build using PIO. I'm still just getting my feet wet so I probably just did something wrong with it. But I really love the idea of using VS Code instead of the Arduino IDE.

  • @asimabusallam3147
    @asimabusallam3147 3 ปีที่แล้ว

    thanks

  • @PraveenMax
    @PraveenMax 3 ปีที่แล้ว +1

    Nice explanation. Being an C++ programmer, I wanted to try Platform IO but reading lot of comments mentioning various issues, I would go back to Arduino IDE and STM Cube Ide....

  • @power-max
    @power-max 3 ปีที่แล้ว +3

    Make a video on custom targets for platforms like MBED, I had a heck of a time trying to get my weact blackpill v2 (stm32f411ceu6) working in MBED. I found a github repo with some of the custom target jsons needed but it took some time to figure out all the things you need to do to get it to work.

  • @gautombose4172
    @gautombose4172 ปีที่แล้ว

    Well done. I enjoyed your video. Please show moe examples. This time please use RPI PICO board also.

  • @philr4665
    @philr4665 3 ปีที่แล้ว +1

    I recently switched to VSCode and PlatformIO and love it. But I see the next Arduino IDE beta is based on VSCode. Interesting to see how that compares.

    • @Autotrope
      @Autotrope 3 ปีที่แล้ว +1

      Based on? I hope that doesn't mean they're forking vscode and they're just building on it like with platformIO. Last thing we need in 10 years is an Arduino IDE that's ten years behind vscode.

  • @ttoo1830
    @ttoo1830 3 ปีที่แล้ว +7

    I use PlatformIo for my projects. But always have problems with my USB Ports. Sometimes my other USB Devices got unpluged on the upload process. I dont know why but i think in the arduino IDE i had no problems like this

    • @b89john
      @b89john 3 ปีที่แล้ว +2

      I had problems with USB ports on my installation. I was running Platformio on linux. The default version of Python was 2.7. After upgrading to the latest version of Python (3.7 I think) the USB ports functioned correctly. It may be worth a check to see if this has any relevance to your problem.

  • @ep_dimi
    @ep_dimi 3 ปีที่แล้ว +2

    Vsc is a nice IDE. It helps specially in projects with many code lines. In that cases, it reduces a lot of coding time, compared with Arduino IDE. The downside is.. when i use more than one connected boards, its impossible to set up the right port and the monitor speed. It just ignore platformio.ini. Also, it often needs a restart, othewhise it wont build and upload the right project. This happen when you have more than one project at the same workspace

    • @wizardy6267
      @wizardy6267 ปีที่แล้ว +3

      The only problem Arduino IDE is, it is for Arduino. Arduino is good for learning things in concept not practial works. When you working on a commercial product you are highly likely using mbed, freeRTOS or Zephyr but not Arduino.

  • @quantumhorizon
    @quantumhorizon 3 ปีที่แล้ว

    I've been using PlatformIO in Clion, and it is definitely the way to go.

    • @17marijn71
      @17marijn71 3 ปีที่แล้ว

      Never thought about using Clion instead of vscode😶
      Great idea!

    • @quantumhorizon
      @quantumhorizon 3 ปีที่แล้ว

      @@17marijn71, I've had a lot of luck with it so far. Plus I'm already familiar with Pycharm and the interfaces are nearly identical.

  • @norm1124
    @norm1124 3 ปีที่แล้ว

    Our board zoos look so similar - men's fashion from the cupboard.

  • @AndersJackson
    @AndersJackson 3 ปีที่แล้ว +1

    May I suggest VScodium?

  • @H0t.5tuff
    @H0t.5tuff 3 หลายเดือนก่อน

    how do you use libraries and ino examples?

  • @noelmorales1371
    @noelmorales1371 2 ปีที่แล้ว

    Hey brother thanks this great to know. One ? How do i restart vsc. Im new to this.

  • @satwikagarwal3736
    @satwikagarwal3736 9 หลายเดือนก่อน

    Hey, Can you explain how can i use platformio with stm32

  • @TheJavaSync
    @TheJavaSync 3 ปีที่แล้ว

    It can upload hex file to direct atmega328 chip- itself, instead of arduino bord?

    • @tookitogo
      @tookitogo ปีที่แล้ว +1

      Yes, using an AVR programmer or an Arduino with the appropriate program loaded on it.

  • @paulreeder5241
    @paulreeder5241 2 ปีที่แล้ว

    I have an Anycubic Mega Zero that I installed a heated bed mod on. I don't know what board this has. I have looked but I can't find an answer to this question. I have installed VS and PlatformIO. I don't know what other files I may need? I just can't figure out how to flash the new firmware that incorporates the heated bed? I found all kinds of files on github, but I have no clue which ones I need.
    Any help you can give would be most graciously appreciated.

  • @hacerdemirel9833
    @hacerdemirel9833 2 ปีที่แล้ว

    Could anybody inform please what is size of PlatformIO plugin for VS Code?

  • @Kitsu_no_mirai
    @Kitsu_no_mirai 3 ปีที่แล้ว +1

    I can't get my st-link v2 connected to platform io. Does anyone know how to fix it?

  • @tookitogo
    @tookitogo ปีที่แล้ว

    9:30 Huh?!? I’ve never had to prepare an ESP32 to program it from either Arduino IDE or PlatformIO. This includes on custom boards onto which I installed virgin ESP32 modules (not dev boards). Programming doesn’t use a bootloader (or rather, I guess it’s built into the ESP32). It’s just straight UART with the boot select pins (IO0 and IO2) and reset pin (EN) sequenced appropriately, which the USB-serial adapter does.

  • @hpgramani
    @hpgramani 3 ปีที่แล้ว

    Why the framework name needs to be repeated for each new board in .ini file?

  • @PebblesChan
    @PebblesChan 3 ปีที่แล้ว +3

    mbed is the easiest and most convenient because of its online compiler. There’s nothing to install. Just logon, write your code on the web page, click compile and if all’s well and then file copy the binary to your mbed and reboot it mbed to run your program QED

    • @ernestuz
      @ernestuz 3 ปีที่แล้ว

      I was going to say that the problem appears when the application grows and you have to start debugging using breakpoints, but apparently mbed supports it now, so THUMBS UP!

  • @teletoon2884
    @teletoon2884 2 ปีที่แล้ว

    How do I use platformio for STM32F030

  • @larrybud
    @larrybud 5 หลายเดือนก่อน

    Do yourself a favor and change the "upload" to an "upload and monitor" shortcut. This way if you have a while(!serial) statement in your setup (waiting for the serial port to be ready), it will open the terminal window right after upload.
    I wish they made this for visualstudio. VS is so much faster than VScode.

  • @thewatchmaker.
    @thewatchmaker. ปีที่แล้ว

    how to rename a platformio project ? thanks !

  • @rajupadhyay3855
    @rajupadhyay3855 3 ปีที่แล้ว

    Professor Gary how about covering how custom ROMs are developed?

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว

      I did that over 4 years ago th-cam.com/video/99LUjX63LhU/w-d-xo.html

  • @emaayan
    @emaayan ปีที่แล้ว

    PlatfromIO seems nice, but then i discovered it's c/c++ tooling doesn't have refactoring features (not major ones that is)

  • @robc3863
    @robc3863 ปีที่แล้ว

    What about remote debugging? I've an stm32f401 board with usb C and stm link, visual studio is so much better than Arduino ide, how about platformio?

    • @tookitogo
      @tookitogo ปีที่แล้ว

      I haven’t used it extensively, but I have tested debugging in PlatformIO on a Nucleo board (at my old job, I don’t remember exactly which model) and it worked perfectly.
      I’ve used the PlatformIO debugger on ESP32 on a few real projects, and while still useful, it is much more fickle, requiring fiddly configuration on Windows. And on some sketches, it just won’t work at all.
      The Nucleo debugger just worked. I’ve been meaning to pick up some Nucleo boards, and the good debugger is a big reason why.

  • @farhanchowdhury6238
    @farhanchowdhury6238 2 ปีที่แล้ว

    Can anyone please tell me if it supports STM32F103RB board?

    • @tookitogo
      @tookitogo ปีที่แล้ว

      You can check both from within PlatformIO as well as on the PlatformIO website.

  • @thapthoptheep2076
    @thapthoptheep2076 3 ปีที่แล้ว +1

    Interestinly enough - I just deleted this extension in vs code.
    Shame, because it's my preferred editor...but PlatformIO was causing a problem in that it'd crash vs code or even my PC when I was working offline.
    Happened a few times before I realised what was causing it, apparently PlatformIO needs a constant internet connection or it gets grumpy. Note, this was happening just using vs code and not using PlatformIO, was workingon other projects and it kept happening.
    Should be able to work offline without stupid stuff like that happening. Definitely PIO causing it, hasn't happpened again since I uninstalled.

  • @Greebstreebling
    @Greebstreebling ปีที่แล้ว

    further update - I used PIO for a while - it can be good as per my other post here, but currently (2023) there is no stable/ working solution for code upload to AVR4809, and support can't sort it. So I'm using JTAG2UPDI in arduino and VScode as an editor. (JTAG2UPDI does not work in PIO)

  • @bitosdelaplaya
    @bitosdelaplaya 3 ปีที่แล้ว

    Not sure ! Is it portable ?????

  • @mananshah4184
    @mananshah4184 3 ปีที่แล้ว +1

    How does it scale with gpio pin numbers
    As all boards have different pin numbers available for use

    • @0LoneTech
      @0LoneTech 3 ปีที่แล้ว

      PlatformIO manages installation of toolchains like compilers and uploaders, and some libraries for peripherals, but your code is still basically designed for one of the packaged frameworks. E.g. Arduino uses its own idea of numbers for IO pins, so may just have more or less on different boards. You can use defined variables to differentiate your build configurations, e.g. ESP32-CAM builds get compiled with -DBOARD_ESP32CAM_AITHINKER.

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว

      I don't think I say anywhere in the video that the abstraction is at a code level or an API level. So, I don't think I misdescribed anything.

    • @0LoneTech
      @0LoneTech 3 ปีที่แล้ว +1

      @@GaryExplains I apologize. I somehow got the impression it was described as abstracting away interfaces to peripherals and such. I've gone over the beginning of the video again and concluded I was mistaken.

  • @MarkHopewell
    @MarkHopewell 2 ปีที่แล้ว

    What a shame the libraries facility wasn't covered.

  • @NotMarkKnopfler
    @NotMarkKnopfler 3 ปีที่แล้ว

    It's never worked for me. It can't find any .h files. I'll have to give it another try.

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว +1

      Works fine for me, as I showed in the video. It seems unfair to call it junk, maybe the fault is yours not the tool?

  • @murraymadness4674
    @murraymadness4674 ปีที่แล้ว

    This is great..until it gets some kind of error, then you have no clue on how to fix it since you never had to understand dig in to the underlying tools. Even with arduino I find myself having to debug why things don't work. Will PIO make it better?

  • @gtcollection6933
    @gtcollection6933 3 ปีที่แล้ว

    Great character and content quality, glad I've clicked! The subject/product however is, well, for the blinky engineers only ;-)
    ps. rather important to remain updated with manufacturers' ide and tools/drivers more than anything (for e.engineers).

  • @_M_a_r_t_i_n_M
    @_M_a_r_t_i_n_M ปีที่แล้ว +2

    Platform IO has given me NOTHING but headaches in the past. And for the past 4 months, a paid copy of Visual Micro, which is an extension for Microsoft Visual Studio (NOT VScode)! It sets up the Arduino infinite loop. But it gives you the full power of Visual Studio to manage folders, libraries and you have it. And it works flawlessly every time. I need to check if it can do all of the other frameworks, but even if not. One can still start from scratch and write their own Main program and write in a loop.. And if done properly, will save A LOT of space.

    • @larrybud
      @larrybud 5 หลายเดือนก่อน

      How does it work with 3rd party library downloads?

  • @Borishal
    @Borishal 3 ปีที่แล้ว

    I wish I could make it work.

  • @SeanPorterPDX
    @SeanPorterPDX 3 ปีที่แล้ว +3

    No mention of the potential privacy issues with VSCode? Or the version that has all the telemetry removed, for those who care about that sort of thing? :(

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว +1

      No, no mention of that, since this video isn't about that.

    • @Autotrope
      @Autotrope 3 ปีที่แล้ว +2

      vscode is a product for which Microsoft is relatively open - even candid - about the information they collect from you, why and let you disable it. If you're not convinced, then vscodium is for you. But you should know that in comparison to other major Microsoft products, *particularly Windows 10*, vscode is the least of your concerns. Expand that to include pretty much any service or software from the likes of Google, or Dropbox, etc. Google Chrome alone is a big offender.
      If you use a Linux system bereft of any product from a company known to monitor user actions, then it would make sense to be concerned about vscode. But if you're running such a system, *why would you be using vscode*?

  • @fernandof2948
    @fernandof2948 3 ปีที่แล้ว

    unfortunately, if something happens with the configuration, it will no longer work again

  • @desaoaraujo
    @desaoaraujo ปีที่แล้ว

    I finally found a way to program my bluepill! STM32 software won't work... (I received the fake chip without knowing about it!). Thank you!

  • @Krejstrup
    @Krejstrup 3 ปีที่แล้ว +1

    Fun! If it worked - I tried to install it on two computers, and both installs failed with the same error. I even put time to find and do something to solve it. Seems like Python code is not the coolest nor safest. So 100% failure!! Totally ...ehrmm... bad, I was going to say bad *mmmm*
    Nice vid though! But the platform really needs some rework noneless. I got it working by uninstalling everything with Python and "remove the alias for Python installer" in Windows. then start the VSC and let it install the PIO again.

  • @jumadhaheri
    @jumadhaheri 3 ปีที่แล้ว

    Platform IO add so much pain. I Could not configure it correctly

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว +1

      Sorry to hear that, I have found it super helpful.

    • @cronchcrunch
      @cronchcrunch 3 ปีที่แล้ว

      Hi. What is the problem you are experiencing with it?

    • @cronchcrunch
      @cronchcrunch 3 ปีที่แล้ว

      If you are at college or university you could be a free licence to use CLion from JetBrains.
      Often times when I'm having trouble with PlatformIO on VS Code, the PlatformIO plugin on CLion works perfectly for me.

    • @yahyakhalid6599
      @yahyakhalid6599 3 ปีที่แล้ว

      I second this! PlatformIO at this stage is anything but stable. Lots of hassle during configuration, new update comes and boom!!....now your last night working code isn't working anymore. Was using it for ESP-IDF but had to shift due to its never ending problems. It's great and have good builtin functionality but it's not stable yet..... Atleast not for all boards and definitely not ESP-IDF which I've personally used. However, i tried arduino with it too but haven't encountered a problem. Maybe it's just some boards and frameworks that needs refining. Who knows....

  • @user-xv4id9xx7u
    @user-xv4id9xx7u 3 ปีที่แล้ว +2

    Alternative? Not really. PlatformIO blows other IDEs out of the water. Arduino IDE is good for total newcomers and their Blinky projects. Anyone more serious than that will benefit tremendously from using PlatformIO and even beginners should be actively steered towards PlatformIO for their own good.

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว

      You say it isn't an alternative and then go into detail about how it is an alternative. 🤔

    • @user-xv4id9xx7u
      @user-xv4id9xx7u 3 ปีที่แล้ว

      Not really alternatives, though. More like different products targeting different groups of users. Arduino IDE is good for Blinky-like projects, PlatformIO for everything more complex. Their features do overlap but they are not exactly alternatives.

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว +1

      @@user-xv4id9xx7u The Oxford English Dictionary defines alternative as "one of two or more available possibilities." I think that defines PlatformIO, in the context of Arduino, perfectly.

  • @chrislutes2882
    @chrislutes2882 9 หลายเดือนก่อน

    I'm gonna argue this one. Arduino IDE is stupid simple to use and learn. The ultimate beginner's IDE where everything works right out of the box.
    PlatformIO in VScode is extremely powerful, but is a nightmare to learn and things don't "just work" out of the box. It just isn't simple and straightforward to learn and be successful as a beginner.
    FYI, I am using PIO, but it has been a fight uphill the entire way. The Arduino IDE was much faster to learn and was fun doing it. PIO has not been fun at all.

    • @larrybud
      @larrybud 5 หลายเดือนก่อน

      The arduino IDE is fine for very simple, one file programs. But once you start with multiple files and classes, PIO is the way to go, but there's definitely a learning curve to those who don't know C++.

  • @haroldmoore2563
    @haroldmoore2563 ปีที่แล้ว

    seems like its built specifically to separate developers from programmers.......

  • @gogny7665
    @gogny7665 3 ปีที่แล้ว +1

    VSCodium, it's VSCode without Microsoft garbage...
    You just have to download the extensions to install them manually, but that's worth it personally...

    • @Autotrope
      @Autotrope 3 ปีที่แล้ว

      You do know vscode is a Microsoft product do you? If you remove all the Microsoft stuff from vscode you end up with nothing. Vscodium just disables some of the telemetry by default instead of requiring you to do it in settings.

  • @MatthewHarrold
    @MatthewHarrold 3 ปีที่แล้ว +9

    The microcontroller world is worse than the 70's and 80's PC environment ... it is scatterbrrain territory ... and don't call me dude. $0.02

  • @philbowles3240
    @philbowles3240 3 ปีที่แล้ว +2

    Shame its not 100% ArduinoIDE compatible and totally fails to build any ArduinoIDE library that relies on being able to detect hardware / board type etc using standard, well-known, long-established Arduino #defines. For reasons know only to the PIO build team they simply invented their own, instead of using the exisiting correct ones, thus guaranteeing that many cross-platfrom libraries will break and thus cannot be used in PIO. Kinda dumb eh? Even dumber when you know they have known about this for four or five years and chose to continue using their own home-grown / no-earthly-reason / guaranteed code-breaking / 100% incompatible what-t-f-were-they-thinking non-standard #defines. Go Figure.

    • @user-hs2co3we4o
      @user-hs2co3we4o 3 ปีที่แล้ว

      Can you elaborate a little bit?

    • @MarcusWolschon
      @MarcusWolschon 3 ปีที่แล้ว +1

      Yes, it uses proper, clean C and does not do any of the C-incompatible stuff the Arduino IDE allows you to wrote. (search path for files, things must be defined before they are used,...)

  • @rnoma6898
    @rnoma6898 3 ปีที่แล้ว +2

    Interesting up until you said Microsoft. No thank you.

    • @GaryExplains
      @GaryExplains  3 ปีที่แล้ว

      Out of interest, which Linux distribution are you using?

    • @rnoma6898
      @rnoma6898 3 ปีที่แล้ว +1

      @@GaryExplains I need the clock cycles in my FFT's. KDE is clean enough to run it.

  • @fjb5894
    @fjb5894 2 ปีที่แล้ว

    Nice ripoff of the DroneBot Workshop video content. His exact video but with a British accent. Good job mate! Have any original thoughts or ideas? Give any credit to DroneBot Workshop?