PlatformIO IDE: An alternative development environment for PIC32

Let us know what you think about the chipKIT, and what can be done to make it better!
ivankravets
Posts: 4
Joined: Sat Apr 30, 2016 11:50 am

PlatformIO IDE: An alternative development environment for PIC32

Postby ivankravets » Sat Apr 30, 2016 12:13 pm

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:
- Big Update! PlatformIO IDE 1.2.0 and PlatformIO CLI 2.9.0.

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`)

Image

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

Regards,
- The PlatformIO Team

GastonLagaffe
Posts: 98
Joined: Sun Oct 26, 2014 2:50 pm

Re: PlatformIO IDE: An alternative development environment for PIC32

Postby GastonLagaffe » Sun May 01, 2016 1:22 pm

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
Posts: 4
Joined: Sat Apr 30, 2016 11:50 am

Re: PlatformIO IDE: An alternative development environment for PIC32

Postby ivankravets » Wed May 04, 2016 1:35 pm

GastonLagaffe wrote: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 ?

GastonLagaffe wrote: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.

GastonLagaffe wrote: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.

GastonLagaffe wrote: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
Posts: 98
Joined: Sun Oct 26, 2014 2:50 pm

Re: PlatformIO IDE: An alternative development environment for PIC32

Postby GastonLagaffe » Wed May 04, 2016 7:23 pm

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
Posts: 4
Joined: Sat Apr 30, 2016 11:50 am

Re: PlatformIO IDE: An alternative development environment for PIC32

Postby ivankravets » Fri May 06, 2016 4:36 pm

GastonLagaffe wrote: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.

GastonLagaffe wrote: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

GastonLagaffe wrote: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.

GastonLagaffe wrote: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.

GastonLagaffe wrote: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.

GastonLagaffe wrote: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
Posts: 4
Joined: Sat Apr 30, 2016 11:50 am

Re: PlatformIO IDE: An alternative development environment for PIC32

Postby ivankravets » Sun May 08, 2016 12:40 pm

GastonLagaffe wrote: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
Posts: 3
Joined: Thu Sep 13, 2012 10:48 am

Re: PlatformIO IDE: An alternative development environment for PIC32

Postby brad000123 » Tue Oct 25, 2016 10:19 am

thanks for the valuable information


Return to “chipKIT Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest