Other Parts Discussed in Thread: CC3200, ENERGIA, CC3220SF, CC3220S, , TMP006
Hi,
In the past I have used Energia to develop on the CC3200, and I was wondering if Energia will be providing support for the CC3220 in the (near) future?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello Thane,
Please use this URL : (removal of additional /packages folder)
http://energia.nu/packages/package_cc3220_beta_index.json
~roger
I am not able to reproduce this. Can you please attach the Sketch so that I can have a closer look at it?
Here is the repository I am working out of: https://github.com/exosite-garage/arduino_exosite_library/tree/CC3200_support
Under Examples/CC3200HVACDemo you will find the sketch I am using.
I've also attached the verbose log of my compile in case that helps.
Thanks!
Sorry it took a while. I just took another look at this and it turns out it is a bug in the implementation of String for the EMT targets which include CC3220.
We moved the double precision String operations to a separate implementation file called WStringD.cpp to work around issues for some compilers. Most of these functions including the one you are using (String::String(float, unsigned char)) call init(). Init() is an inlined function which causes it to not be there during link time of WStringD and hence the undefined reference.
There is an easy work around for this. Edit the file WString.cpp and remove the inline on line 120. You can find WString.cpp in:
Regarding the sensor, it is indeed still a TMP006 on the CC3220 LaunchPad.
Robert
Thanks for the help Robert!
As far as the sensor goes, It seems that everything works, except for when I try to compile while using readObjTempC().
readDieTempC works perfectly; it compiles and runs, however when I try to use readObjTempC() it throws this error:
/Users/thanestorley/Library/Energia15/packages/energia/hardware/cc3220emt/4.9.0/system/source/ti/drivers/net/wifi/gcc/rtos/simplelink.a(driver.obj): In function `_SlDrvallocateErrno':
driver.c:(.text._SlDrvallocateErrno+0x22): undefined reference to `pthread_self'
/Users/thanestorley/Library/Energia15/packages/energia/hardware/cc3220emt/4.9.0/system/source/ti/drivers/net/wifi/gcc/rtos/simplelink.a(driver.obj): In function `__errno':
driver.c:(.text.__errno+0x22): undefined reference to `pthread_self'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board CC3220SF-LAUNCHXL (80MHz).
Also, is there any word of an official release for the CC3220 board package?
Thanks!
I traced it down to a math function but have no idea yet why it is trying to pull in the WiFi function that calls pthread_self().
The below Sketch fails to link with the below error. If I remove #include <WiFi.h> it links. If I leave #include <WiFi.h> uncommented but then comment out double Tobj = sqrt(analogRead(A0)), it it also links. We are looking into it and hope to find the root cause soon.
Hey Rangarajan,
I was able to get the cc3220 up and running, however, I believe that the board is still in beta, meaning that code can still only be uploaded to the RAM. If you're interested in seeing how to set up a cc3220 board, feel free to take a look at this guide.
http://docs.exosite.com/tutorials/hvac-tutorial/cc3220/#ti-cc3220-setup