Jump to content
mitov

Enabling C++11/14 support in Energia

Recommended Posts

Hello everyone,

 

I am trying to add Visuino https://www.visuino.com supportfor the TI controllers, so I downloaded Energia, and copied the Visuino libraries to the "C:\Energia\hardware\msp430\libraries" .

The libraries are developed for C++14 to use the latest compiler optimizations, and simplify the code base. They work fine on all Arduino, ARM, and ESP8266 controllers as they all have the C++11/14 support enabled by default.

How to enable the C++14 support in Energia?

 

With best regards,

  Boian Mitov

Share this post


Link to post
Share on other sites

-std=gnu++11 is not supported in the current version of the msp430 gcc compiler (v 4.6.3 ). A new compiler for MSP430 from TI is available which does support this feature. I will be releasing a package that included this compiler in a couple of weeks. You will need the new Energia IDE that is currently in beta which includes the core/manager. A beta is available here:  http://forum.43oh.com/topic/9752-energia-1610e18b6-beta-available/

 

The official release should be out sometime this week.

 

Robert

Share this post


Link to post
Share on other sites

Sorry for not being clear in the post above. The current beta includes the older gcc version. I will be releasing an updated MSP430 board package in the next couple of weeks that will include the aforementioned updated msp430-elf-gcc compiler that will feature gnu++11.

Share this post


Link to post
Share on other sites

Perhaps I have missed something but it seems that the latest Energia 1.8.7E21 with Eneriga MSP430 boards package 1.05 is still using gcc 4.6.3 from 2012. Where can I find the updated board package with the msp430-elf-gcc compiler?

If this project hasn't been completed yet, what can be done to help it forward, how can I help?

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks for pointing me to right location. 👍 I always assumed that msp430-lg-core stood for legacy so didn't look further in the tree...

I haven't been able to try this yet because the make_mito_release.sh script tries to download this file but the website constantly reports that it's offline due to maintenance for 2 days.

Edit: Searching for the correct link via the Design Resources webpage on the ti.com website I get a new link to the latest Linux compiler.

Edited by LIJsselstein
Additional info

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...