Jump to content
43oh

New Energia release 0101E0016 - 07/08/2015


Recommended Posts

A new version of Energia is now available for download. The new version includes bug fixes as well as new RTOS libraries.

 

Downloads

Link to post
Share on other sites

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

Link to post
Share on other sites

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
Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 1 month later...

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 :P
I hadn't still updated to this version and I assumed it was like msp432 that has only MT

Thanks :D

Link to post
Share on other sites

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;
}
Link to post
Share on other sites
  • 1 month later...

 

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

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...