mitov 0 Posted August 10, 2016 Share Posted August 10, 2016 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 Quote Link to post Share on other sites
energia 485 Posted August 10, 2016 Share Posted August 10, 2016 -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 Fmilburn 1 Quote Link to post Share on other sites
mitov 0 Posted August 11, 2016 Author Share Posted August 11, 2016 Hi Robert, Thank you! A beta is available here: http://forum.43oh.com/topic/9752-energia-1610e18b6-beta-available/ I downloaded the Beta, but it still does not seem to have the gnu++11 or 14 enabled. Do I need to download or configure anything else? Boian Quote Link to post Share on other sites
energia 485 Posted August 11, 2016 Share Posted August 11, 2016 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. Quote Link to post Share on other sites
LIJsselstein 9 Posted January 7, 2020 Share Posted January 7, 2020 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? Quote Link to post Share on other sites
Rei Vilo 695 Posted January 7, 2020 Share Posted January 7, 2020 Have a look at the Read Me file on the New Compiler branch of the MSP430 core repository. Also of interest, Install release 7.3.1 of the GCC tool-chain for MSP430. Quote Link to post Share on other sites
LIJsselstein 9 Posted January 9, 2020 Share Posted January 9, 2020 (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 January 9, 2020 by LIJsselstein Additional info Quote Link to post Share on other sites
mitov 0 Posted June 5, 2020 Author Share Posted June 5, 2020 On 8/10/2016 at 10:19 AM, energia said: -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. Thank you Robert, In the last 4 years, Visuino has become very popular, and now it supports most controllers on the market, and even has partial support for Raspberry Pi. The only controllers that are not currently supported are the Energia TI controllers, and I am looking again into adding support for them. I just tested the latest Energia IDE version, and it appears that it still is missing the C++11/14 😞 . Is there a way to enable the C++11 support, so I can add prodly Energial to the growing list of boards supported by Visuino 🙂 www.visuino.com I am at present testing direct compilation inside the Visuino IDE, without the needs of the Arduino IDE, so I will be able to add support for the Energia IDE without problem, but I need to have the C++11/14 support in order for this to work, since all the code generation and Visuino libraries are specifically designed to use modern C++ features 😞 With best regards, Boian Mitov Quote Link to post Share on other sites
mitov 0 Posted June 28, 2020 Author Share Posted June 28, 2020 Hello Robert, Is Energia actually supported? I even have a customer that has project that needs the C++1X . Can you please update the compiler so I can make some progress? Cheers, Boian Quote Link to post Share on other sites
Derekspeegle 0 Posted September 23, 2020 Share Posted September 23, 2020 Can this be figured out @Rei Vilo @energia? I use TI MCUs in a lot of projects and it would be fantastic to have access to modern C++ functions. As it is currently, you have to rewrite any example code that manufacturers provide. Often times, this isn't practical so some sort of update would be nice. Can you at least confirm that anything is in the works or that it's unsupported at this point? Thanks, Quote Link to post Share on other sites
Rei Vilo 695 Posted September 24, 2020 Share Posted September 24, 2020 You can try and edit the platform.txt file and set a different version for C and C++. However, this may rise conflicts with the default libraries, as they target an older version of C and C++. For more advanced use of the Energia SDK, I would recommend using Code Composer Studio. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.