LowPowerLab Forum

Hardware support => General topics => Topic started by: Chris on March 24, 2016, 01:01:36 PM

Title: C++11 compiler flags with Moteino
Post by: Chris on March 24, 2016, 01:01:36 PM
Hello all,

I have setup a "temporary" location for a modified version of the Moteino boards definition file which includes the C11/C++11 compiler flags.

If you are including "https://lowpowerlab.github.io/MoteinoCore/package_LowPowerLab_index.json" in the Arduino IDE "Additional Boards Manager URLs" preferences field, and are interested in using C11/C++11 compiler flags (which isn't in the official release), you can use the following URL in the Arduino IDE "Additional Boards Manager URLs" field to access the modified fileset:
http://sail.ddns.us:800/Arduino/BoardsManager/package_LowPowerLab_index.json

To use the modified files in the Arduino IDE:
1) "Remove" the official version using the Boards Manager
2) Insert the above URL into the "Additional Boards Manager URLs" field (in place of the github URL, if you previously used it)
3) "Install" the Moteino boards definitions using the Boards Manager

The only modifications to the fileset is the inclusion of the C11/C++11 compiler flags, added "-11" to the Zip file name, and modified file package_LowPowerLab_index.json to reflect the changes in archiveFileName/url/checksum/size fields.

Felix will be considering to have the modification included in the officially released files.  If you use the modified fileset please report back to this thread if you have problems (and just as important, if you have no problems), as well as if you notice anything different in your compiled code... such as code size generated by the compiler, changes in program behavior between code compiled with/without the C11/C++11 flags, etc.  This will assist him in determining user needs/desires for the modified files.

Cheers,
Chris
Title: Re: C++11 compiler flags with Moteino
Post by: Felix on March 24, 2016, 02:03:02 PM
UPDATE: I have added these flags to the official core package (https://lowpowerlab.github.io/MoteinoCore/package_LowPowerLab_index.json).
In addition, I added a board definition for MightyHat (everything the same as Moteino, different name to avoid confusion).
The prior 1.0 version is also available to install through the IDE Board Manager.
Thanks Chris for the flags suggestion and contribution.