Jump to content
43oh

New Energia release 0101E0013 - 09/05/2014


Recommended Posts

  • Replies 47
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

I am happy to announce that release 0101E0013 just went up on http://energia.nu. This release adds support for the awesome CC3200 WiFi LaunchPad and CC3100 BoosterPack for MSP430 and TivaC.   I want

NEW FEATURE folks will want to be aware of!   For msp430 and lm4f (Tiva/Stellaris), there are three new ways to pause or halt the CPU-   void sleep(uint32_t milliseconds); void sleepSeconds(uint3

CC3200 users: Don't forget to visit http://energia.nu/cc3200guide/ and follow the directions there; this firmware update can only be done on Windows at the moment unfortunately, but it's important for

Posted Images

Thanks for making Energia to support CC3200. I blog for Element14 Backyard Challenge

 

http://www.element14.com/community/people/janisalnis/blog/2014/09/13/energia-is-out-there-for-cc3200

 

 

Onboard temperature sensor example did not work for  me. Anyone can help?

QuickTMP006.ino:17:20: fatal error: tmp006.h: No such file or directory

Link to post
Share on other sites

Onboard temperature sensor example did not work for  me. Anyone can help?

QuickTMP006.ino:17:20: fatal error: tmp006.h: No such file or directory

 

Please note that the example you are trying to load is for a TMP006 infra-red temperature sensor, which is part of the Educational Boosterpack Mark 2.  I do not believe that there is a TMP006 temperature sensor built in to the CC3200, so this probably is not an onboard sensor. [Edit: My memory was wrong, turns out it does have a TMP006]

 

It looks like there is indeed an omission in the CC3200 section of energia.  It could be that the TMP006 driver has not been tested or does not work with the CC3200 (and they neglected to remove the demo), or that the TMP006 driver was inadvertently omitted.

 

If you want to read from the temperature sensor built in to the CC3200, if it works like the Stellaris/Tiva processors, then there would be a special ADC channel to read that sensor.  (Don't know if there are demos that cover this specifically.)

 

I did a little poking around and it looks like all the BP mark 2 examples which rely on libraries (Servo, LCD_, TMP006) do not work on CC3200 because the requisite libraries do not exist on that platform.  I will submit an issue.

Link to post
Share on other sites

Hello all,

 

I think I found a mistake in the CC3200 Launchpad pin map (pins_energia.h).

In the file I have (Energia 0101E0013), the push-button 1 is defined as Pin 3

static const uint8_t PUSH1 = 3;
but from the map on the energia.nu it should be on the Pin 4

static const uint8_t PUSH1 = 4;
Regards,

Liviu

 

PS Sorry if this issue was already reported, I've found nothing on the github list.

Link to post
Share on other sites

 

So how can I disable this time out?

Install XT1 and it will shorten, otherwise you can't (well, find the code in wiring.c and modify if you want)

 

The function enableXtal() looks suspiciously like it may be what you want.

At one of the calls to it it says.

/* Attempt to enable the 32kHz XTAL */

 

Seems a little odd that this function is called twice for some parts.

(if __MSP430_HAS_BC2__ is defined, it is called up near the top of initClocks(), and then it is called again down at the end of initClocks().)

Not clear from the code why it needs to be called twice.

 

enableXtal is not present in previous version of Energia.

(I haven't tested it to be sure that it is the part you want, or to figure out how to bypass the timeout).

 

Might be nice if there was a user configurable way to turn the check off.

Link to post
Share on other sites

UPDATE-

 

Energia 13 unfortunately was built to use "-O0" (optimization turned off) for all ARM Cortex-M platforms (lm4f Stellaris, tm4c Tiva-C, cc3200) which can bloat code size or otherwise alter performance.  This was done in the testing of the new CC3200 platform but never intended to stick around for the release.  MSP430 not affected.

 

Rob did a quick rebuild of the IDE with "-Os" (optimize for size, the typical default for embedded applications) and provided an updated "pde.jar" file here - http://forum.43oh.com/topic/5876-energia-0101e0013-how-turn-on-optimization-for-tivacc3200/?p=51199

 

Please d/l that, unzip it and replace the "pde.jar" in your Energia install with that.  Under Linux it's located in energia-0101E0013/lib, see his instructions for OSX and Windows should be similar to Linux's location.

Link to post
Share on other sites

Please note that the example you are trying to load is for a TMP006 infra-red temperature sensor, which is part of the Educational Boosterpack Mark 2.  I do not believe that there is a TMP006 temperature sensor built in to the CC3200, so this probably is not an onboard sensor.

On CC3200-LAUNCHXL is onboard I2C temperature sensor TMP006 chip and accelerometer BMA222 chip. They are used in Out-Of-the-Box demo. And in CCStudio examples there are files tmp006drv.c and tmp006drv.h. I have used these files in my CCStudio projects.

Hope that will be possible to read them in Energia.

Link to post
Share on other sites

On CC3200-LAUNCHXL is onboard I2C temperature sensor TMP006 chip and accelerometer BMA222 chip. They are used in Out-Of-the-Box demo. And in CCStudio examples there are files tmp006drv.c and tmp006drv.h. I have used these files in my CCStudio projects.

Hope that will be possible to read them in Energia.

Theres a lib for the accelerometer in the hardware folder

Link to post
Share on other sites

@@MORA99 Could you give a more specific location/file name?  I could not find TMP006 drivers in the CC3200 folders under hardware.

I am fairly sure the accelerometer chip is named BMA222, I havent found one for the temperature sensor yet.

Path : \Energia\hardware\cc3200\libraries\BMA222.

BMA222 mySensor;
mySensor.begin();
//mySensor.readXData();
//mySensor.readYData();
//mySensor.readZData();


Link to post
Share on other sites

 

I am fairly sure the accelerometer chip is named BMA222, I havent found one for the temperature sensor yet.

Path : \Energia\hardware\cc3200\libraries\BMA222.

BMA222 mySensor;
mySensor.begin();
//mySensor.readXData();
//mySensor.readYData();
//mySensor.readZData();

 

Thanks.  I actually misread your posting.  Since the original question had been about the TMP006 sensor, I didn't read closely enough and thought you had found a driver for that.  Sorry for the confusion.

Link to post
Share on other sites

Seems I misread too :)

 

I managed to get the Adafruit code working with minor changes : https://github.com/adafruit/Adafruit_TMP006

 

in Adafruit_TMP006.h

add "#define ARDUINO 101"

comment out #include <Adafruit_Sensor.h>

 

in Adafruit_TMP006.cpp

comment out #include <util/delay.h>

 

To test it 

Adafruit_TMP006 tmp006(0x41);
  if (! tmp006.begin()) {
    Serial.println("No sensor found");
  }  
  //tmp006.wake();
  float objt = tmp006.readObjTempC();
  Serial.print("Object Temperature: "); Serial.print(objt); Serial.println("*C");
  float diet = tmp006.readDieTempC();
  Serial.print("Die Temperature: "); Serial.print(diet); Serial.println("*C");  
Object Temperature: 24.46*C
Die Temperature: 30.06*C

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