Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: Just cannot get this PlatformIO thing to work...

  1. #1

    Just cannot get this PlatformIO thing to work...

    I have followed tutorials and burnt the midnight oil....

    Still, I have this baffling PlatformIO thing sitting in front of me that I just cannot get my head around. To say it's not 'noob' friendly is an understatement

    I have had to move from the Arduino IDE (1.8.9 or the new one - which I don't like because nothing seems to work with it), because I am using some ESP32-S3-DevekitC-1 boards and they are taking 6 minutes to upload 'blink' which is ridiculous.
    If I read the Verbose output, it just seems to be taking forever to assemble the required libraries.

    Googled on how to speed that up and most people recommended PlatformIO. But that ain't helped either.

    Hmmm.. maybe I should take up golf.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,478
    Quote Originally Posted by SteveCS View Post
    because I am using some ESP32-S3-DevekitC-1 boards and they are taking 6 minutes to upload 'blink' which is ridiculous.
    How long does Teensy take to upload with Arduino IDE on your system?

  3. #3
    I think it's my Anti-virus Paul. Just tried disabling it and it worked far faster. Have to suss out how to allow Arduino in my Anti-virus.
    I much prefer to stick with the Arduino IDE

  4. #4
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,390
    Quote Originally Posted by SteveCS View Post
    I have followed tutorials and burnt the midnight oil....

    Still, I have this baffling PlatformIO thing sitting in front of me that I just cannot get my head around. To say it's not 'noob' friendly is an understatement

    I have had to move from the Arduino IDE (1.8.9 or the new one - which I don't like because nothing seems to work with it), because I am using some ESP32-S3-DevekitC-1 boards and they are taking 6 minutes to upload 'blink' which is ridiculous.
    If I read the Verbose output, it just seems to be taking forever to assemble the required libraries.

    Googled on how to speed that up and most people recommended PlatformIO. But that ain't helped either.

    Hmmm.. maybe I should take up golf.
    You could use VisualMicro with VisualStudio. It takes control of the Arduino Environment and is MUCH easier to use than PlatFormIO. I tried that and ran into the same problems you are.
    With VisualMicro you can be working on two projects side by side. I am working on a project with and ESP32 communicating with a Teensy and it is very useful to have Serial Output from both devices available for debugging.

    It has teh benefit of the Arduino IDE compatililty but with a much better development/debugging interface. Did I mention that it has run time debugging capabilities built in with the ability to single step code.

  5. #5
    Junior Member
    Join Date
    Aug 2022
    Posts
    6
    Serious suggestion if you are on a laptop. Changing my Windows power management setting to "best performance" on both battery and wall power fixed my long compilation issues. My hunch is that it is some kind of Windows efficiency profile.

    I use PlatformIO and my very large Teensy based programs compile and upload within a couple of seconds. Our largest programs with many images and audio files embedded take 15 seconds max.

  6. #6
    Senior Member
    Join Date
    Oct 2016
    Posts
    1,222
    Quote Originally Posted by BriComp View Post
    You could use VisualMicro with VisualStudio. It takes control of the Arduino Environment and is MUCH easier to use than PlatFormIO. I tried that and ran into the same problems you are. With VisualMicro you can be working on two projects side by side. I am working on a project with and ESP32 communicating with a Teensy and it is very useful to have Serial Output from both devices available for debugging. It has teh benefit of the Arduino IDE compatililty but with a much better development/debugging interface. Did I mention that it has run time debugging capabilities built in with the ability to single step code.
    Hi Brian, I would like to try Visual Micro with Visual Studio, but I cannot make sense of the installation process. Do you have any notes on installation that you could share?

  7. #7
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,390
    It's Bob actually but whatever!
    Click this link to download https://visualstudio.microsoft.com/t...false&cid=2030. Be aware that it is likely to start downloading straight away.

    Install Visual Studio Community. Instructions (Microsoft's) for installing Visual Studio are here:https://learn.microsoft.com/en-us/vi...o?view=vs-2022
    Further install instructions (from Visual Micro) are here https://www.visualmicro.com/page/Use...g-started.html
    When you install Visual Studio you MUST selecy Linux and Embedded Development with C++ as a target (WorkLoad) to work with. If you will be doing other projects also select the appropriate target (WorkLoad).

    Open/Start up Visual Studio.
    On the TOP LINE click Extensions, then Manage Extensions on the drop down menu.

    On the form Select Online, Visual Studio Marketplace.

    In the Search field (top right) type Arduino.
    Then in the centre field Select Arduino IDE for Visual Studio 2022 and go from there.

    The Visual Micro extension will be installed when you Close Visual Studio.

    I hope I have covered enough to get you going. I am afraid the install instructions given by both Microsoft and Visual Micro are written for someone who knows how to do it by someone who knows how to do it. A Common fault in the Software Industry!

    Be Aware that I installed Visual Studio/Visual Micro quite a few years ago, so I am going from memory and looking at online instructioins without actually doing it.

    When you have it installed please come back if you have further questions. There are probably many quirks that I have already sorted out in my head.

    BYE THE WAY BEFORE INSTALLING VISUAL MICRO YOU MUST HAVE THE ARDUINO IDE AND TEENSYDUINO ALREADY INSTALLED.

  8. #8
    Senior Member
    Join Date
    Oct 2016
    Posts
    1,222
    Thanks, Bob. I will give this a try and report back. Part of my confusion is the overuse of "Visual". Visual Studio, Visual Micro, Visual Teensy, VS Code, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •