bluehash 1,581 Posted July 17, 2015 Share Posted July 17, 2015 A new version of Energia is now available for download. The new version includes bug fixes as well as new RTOS libraries. Support for MSP430 FR4133 and FR6989 based FRAM Launchpads. Energia MT for CC3200 LaunchPad, including RedBearLab CC3200 based boards. RTOS-based libraries for clock, timer, event, SWI, task, semaphore, mailbox. Downloads Mac OS X: energia-0101E0016-macosx.dmg Windows: energia-0101E0016-windows.zip Linux 32-bit: energia-0101E0016-linux.tgz Linux 64-bit: energia-0101E0016-linux64.tgz Previous Energia Releases. pine and abecedarian 2 Quote Link to post Share on other sites
veryalive 49 Posted July 17, 2015 Share Posted July 17, 2015 BRAVO, FOLKS !! May I ask : Which processors are supported with the RTOS multitasking? Or another way to say it: when are the RTOS libraries invoked / restricted while building a sketch? Many thanks for a great package... Quote Link to post Share on other sites
bluehash 1,581 Posted July 17, 2015 Author Share Posted July 17, 2015 BRAVO, FOLKS !! May I ask : Which processors are supported with the RTOS multitasking? Or another way to say it: when are the RTOS libraries invoked / restricted while building a sketch? Many thanks for a great package... I moved your post here. As @@Rei Vilo mentioned: Energia MT for CC3200 LaunchPad, including RedBearLab CC3200-based boards veryalive 1 Quote Link to post Share on other sites
veryalive 49 Posted July 17, 2015 Share Posted July 17, 2015 Ahhhhh OK. thanks. so MT is RTOS, i gather (where MT = multitasking in energia, done with customized TI RTOS I presume) cheers.... Quote Link to post Share on other sites
bluehash 1,581 Posted July 18, 2015 Author Share Posted July 18, 2015 Ahhhhh OK. thanks. so MT is RTOS, i gather (where MT = multitasking in energia, done with customized TI RTOS I presume) cheers.... You got it. Quote Link to post Share on other sites
josePH 1 Posted July 19, 2015 Share Posted July 19, 2015 Hi, I've tested EventLibrary and ButtonEvent examples, however my compilations fails. Here's the error: In file included from Event.cpp:9:0: Event.h:20:31: fatal error: xdc/runtime/Error.h: No such file or directory #include <xdc/runtime/Error.h> ^ compilation terminated. Is there any settings to be configuredduring installation so that compiler ables to locate the include files? Here's my setup: Launchpad: CC3200-LAUNCHXL V4.1 OS: WIN8 and OSX ENERGIA IDE: energia-0101E0016 Quote Link to post Share on other sites
semicolo 39 Posted July 21, 2015 Share Posted July 21, 2015 Great work guys. I think you've asked before if the previous version is displaying an update notification. Version 0101E0013 is not showing that an update is available on windows 8 64bits. Edit: But maybe that's because of the firewall at work, I'll try to remember testing it at home. Edit2: No notification at home either. Quote Link to post Share on other sites
L.R.A 78 Posted September 10, 2015 Share Posted September 10, 2015 I have a question.I like to use Energia with TivaWare when I don't know and don't want to take much time getting something to work. Well since I add things in Tivaware, sometimes it's important to know the setup behind it (like for using power saving features). With Energia MT this will be a bit harder, especially since I know little about TI RTOS.Would it not be possible to select if I want to use Energia MT or simple Energia (and yes I know that Energia MT has yet to reach the Tiva)Oh actually it's just that I hadn't still updated to this version and I assumed it was like msp432 that has only MTThanks Quote Link to post Share on other sites
LIJsselstein 9 Posted September 16, 2015 Share Posted September 16, 2015 While researching the low power options I found suggestions in the forum about the sleepSeconds() function and references in msp430/wiring.c to use wakeup() in ISR's to cancel sleepSeconds() in the main loop, but these are not documented in http://energia.nu/reference. Testing sleepSeconds() and wakeup() seems to work fine using the following test code (Launchpad with MSP430G2553) althoughit looks like some libraries are incompatible. E.g. the OneMsTaskTimer timer event seems to halt code execution. Is there a writeup of the pro's/con's/best practices of using sleepSeconds() somewhere? /* Low power debounce Each time the input pin goes from LOW to HIGH (e.g. because of a push-button press), the output pin is toggled from LOW to HIGH or HIGH to LOW. There's a minimum delay between toggles to debounce the circuit (i.e. to ignore noise). Adapted from the example Debounce sketch */ const int ledPin = RED_LED; int ledState = LOW; const int buttonPin = PUSH2; const int buttonDebounceDelay = 50; // in ms volatile bool buttonState = false; void setup() { // put your setup code here, to run once: pinMode(ledPin, OUTPUT); pinMode(buttonPin, INPUT_PULLUP); attachInterrupt(buttonPin, isr_button, FALLING); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: Serial.println("Entering low power sleep..."); sleepSeconds(10); // enter LPM3 for approx. 10*1.25 seconds if (buttonState != ledState) { Serial.println("Button pressed"); if (buttonState) ledState = HIGH; else ledState = LOW; digitalWrite(ledPin, ledState); } } // button ISR void isr_button() { static unsigned long lastDebounceTime = 0; unsigned long current = millis(); if ((current - lastDebounceTime) > buttonDebounceDelay) { // new button press found buttonState = ! buttonState; wakeup(); // exit sleepSeconds() in the main loop } lastDebounceTime = current; } Quote Link to post Share on other sites
AlokKumar 0 Posted October 23, 2015 Share Posted October 23, 2015 Hi, I've tested EventLibrary and ButtonEvent examples, however my compilations fails. Here's the error: In file included from Event.cpp:9:0: Event.h:20:31: fatal error: xdc/runtime/Error.h: No such file or directory #include <xdc/runtime/Error.h> ^ compilation terminated. Is there any settings to be configuredduring installation so that compiler ables to locate the include files? Here's my setup: Launchpad: CC3200-LAUNCHXL V4.1 OS: WIN8 and OSX ENERGIA IDE: energia-0101E0016 I am also getting this error,is there a way to successfully compile MT (multi threaded ) examples Quote Link to post Share on other sites
josePH 1 Posted October 23, 2015 Share Posted October 23, 2015 I am also getting this error,is there a way to successfully compile MT (multi threaded ) examples @@AlokKumar, To compile with EMT, you have to select the board as "Launchpad w/ CC3200 EMT". My compilation failed because I did not set the correct board. 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.