chipKIT® Development Platform

Inspired by Arduino™

PlatformIO IDE: An alternative development environment for PIC32

Created Sat, 30 Apr 2016 11:13:39 +0000 by ivankravets


ivankravets

Sat, 30 Apr 2016 11:13:39 +0000

Dear ChipKIT Community,

We (The PlatformIO Team) want to inform you that we have added support for Microchip PIC32 development platforms a few days ago:

A few words about PlatformIO IDE:

  • Cross-platform build system without external dependencies to the OS software:
  • 250+ embedded boards
  • 20+ development platforms
  • 10+ frameworks

[]C/C++ Intelligent Code Completion []C/C++ Smart Code Linter for rapid professional development []Library Manager for the hundreds popular libraries []Multi-projects workflow with multiple panes []Themes support with dark and light colors []Serial Port Monitor [*]Built-in Terminal with PlatformIO CLI tool (pio, platformio)[/list]

Also, PlatformIO CLI could be integrated with the popular IDEs: Atom, CLion, Eclipse, Emacs, Energia, Qt Creator, Sublime Text, Vim, Visual Studio.

Regards,


GastonLagaffe

Sun, 01 May 2016 12:22:18 +0000

Salut,

I tried for about one hour to install the IDE on Windows 10 but failed under normal user privileges. I did not like that I had to (re-)install Python 2.7 but I expect to have issues with my python 3 installation. The installation requires to be run as administrator (bad idea).

If installed as normal user, he IDE starts and then complains that it cannot find its components nor install all modules.

It installs under c:\Users<userid>\AppData\Local\atom\app-1.7.0 without asking me for the installation location. It also puts files in c:\Users<userid>.atom

Once started I opened the blink example - now I have to install CLANG ... Unfortunately the path to the executable platformio.exe is not set correctly to include c:\Users<userid>.atom\packages\platformio-ide\penv\Scripts
Finally the code of blink was uploaded to an arduino.

Honestly - I stick with UECIDE ... PlatformIO is in my eyes too immature

Ciao, Mathias


ivankravets

Wed, 04 May 2016 12:35:51 +0000

I tried for about one hour to install the IDE on Windows 10 but failed under normal user privileges.

Could you try Atom from ZIP ("atom-windows.zip") https://github.com/atom/atom/releases/tag/v1.7.3 ?

I did not like that I had to (re-)install Python 2.7 but I expect to have issues with my python 3 installation. The installation requires to be run as administrator (bad idea).

PlatformIO CLI is written in Python. Python is the only one requirement for PlatformIO what is installed everywhere except Windows :oops: Python should work without Administrator permissions and PlatformIO CLI doesn't require them. What is more, we DON'T recommend to run PlatformIO CLI with SUDO/Administrator privileges.

Once started I opened the blink example - now I have to install CLANG ...

Clang is an optional tool. PlatformIO IDE uses it only for the code autocomplete. We use own pre-built cross-platform toolchains for building, linting and etc.

Unfortunately the path to the executable platformio.exe is not set correctly to include c:\Users<userid>.atom\packages\platformio-ide\penv\Scripts
Finally the code of blink was uploaded to an arduino. Honestly - I stick with UECIDE ... PlatformIO is in my eyes too immature Ciao, Mathias

Please sorry for the inconveniences. We haven't tested PlatformIO IDE under Windows 10. PlatformIO IDE is upper layer above Atom Text editor. We hoped that Atom is well tested under all OS :(

If you don't like Atom or have problems with it, please choose other profesisonal IDE which support PlatformIO: http://docs.platformio.org/en/latest/ide.html


GastonLagaffe

Wed, 04 May 2016 18:23:42 +0000

Salut,

I tried the zip file and got it to run with the same issues as before that the path variables are not handled correctly (this time I used windows 8.1).

But I found a bigger problem: I opened the blink example and found no way to specify the board (default seems to be cerebot32mx4) nor the com port. So the upload tried to load the code onto one of my bluetooth ports. Using the "initialize" menu button lets me add other boards but not remove the previous ones. A build compiles for all plaforms I touched.

I wanted to post some of te build output, but the editor shows the compile messages rushing by but then closes the pane. I have not found a way to re-open that build output.

In summary: I ow have the old python2.7 on my system that does not co-exist nicely with python 3.5 that I need elsewhere. I have no clue how to select the board I am compiling for nor do I see the port the upload will use. As the DP32 only opens a port when put in bootloader mode. my board will never see something uploaded ... And if I want to change the board settings (i.e. F_CPU) ... no option found so far.

So now I will spend the rest of the evening, removing this software cleanly. I see no advantage over UECIDE or MPIDE or Arduino 1.6.7 with chipkit core. Other than a new editor, I see no difference.

Ciao, Mathias


ivankravets

Fri, 06 May 2016 15:36:48 +0000

Salut, But I found a bigger problem: I opened the blink example and found no way to specify the board (default seems to be cerebot32mx4) nor the com port. Using the "initialize" menu button lets me add other boards but not remove the previous ones. A build compiles for all platforms I touched.

This is a feature of PlatformIO. You can have an unlimited number of environments and build the same code for them. Please take a look at PlatformIO IDE: Quick Start > Process Project where are explanations how to process specific environment/board.

So the upload tried to load the code onto one of my Bluetooth ports.

PlatformIO tries automatically to detect upload port based on PID/VID params for the boards. Nevertheless, you can specify own upload port for the environment in platformio.ini

I wanted to post some of te build output, but the editor shows the compile messages rushing by but then closes the pane. I have not found a way to re-open that build output.

See PlatformIO IDE FAQ Keep build panel visible.

In summary: I ow have the old python2.7 on my system that does not co-exist nicely with python 3.5 that I need elsewhere.

PlatformIO Build System is based on SCons utility that supports only Python 2.x. However, they are working on support for Python 3.

I have no clue how to select the board I am compiling for nor do I see the port the upload will use. As the DP32 only opens a port when put in bootloader mode. my board will never see something uploaded ... And if I want to change the board settings (i.e. F_CPU) ... no option found so far.

Please use Project Configuration Files named platformio.ini where you can specify board frequency, specific upload port, own build flags and etc.

So now I will spend the rest of the evening, removing this software cleanly. I see no advantage over UECIDE or MPIDE or Arduino 1.6.7 with chipkit core. Other than a new editor, I see no difference. Ciao, Mathias

Sorry for the inconveniences and thanks a lot that tried PlatformIO IDE. I understand you now. The problem here that you want to receive from PlatformIO "new Arduino IDE". PlatformIO IDE != Arduino IDE. This IDE is from another planet in comparison to Arduino IDE, UECIDE or MPIDE.

What is more, PlatformIO can be integrated with other IDEs (Eclipse, Microsoft Visual Studio, VIM, Sublime Text, etc). See http://docs.platformio.org/en/latest/ide.html

P.S: I'm glad to help you with migrating to PlatformIO.


ivankravets

Sun, 08 May 2016 11:40:03 +0000

I tried for about one hour to install the IDE on Windows 10 but failed under normal user privileges. I did not like that I had to (re-)install Python 2.7 but I expect to have issues with my python 3 installation. The installation requires to be run as administrator (bad idea).

I've just installed Windows 10 in VM, then I installed PlatformIO IDE and run it with generic user permissions. It works very well without any requirements to Administrative privileges.

Did you set up specific security policy in OS?


brad000123

Tue, 25 Oct 2016 09:19:18 +0000

thanks for the valuable information