I've just done a fresh install of CCS 6.1.3.00034.
I've also just installed Energia 0101E0017.
I am attempting to use code from an Arduino project to detect I2C devices. The code is quite simple:
void findAddress() { for (int a = fromAddress; a < toAddress; a++) { Wire.beginTransmission(a); Wire.write(0); int endStatus = Wire.endTransmission(); if (endStatus == 0) { Serial.print("Found device at: "); printHex(a, true); } } }
In the Arduino environmnet, it would output the address of all I2C devices that were connected. However, this basically says that every address is a device..
Anyway, I believe there is a bug fix somewhere with the Energia project. It is quite frustrating that we have to go find and install code hacks in order to get Energia to run and play nicely with CCS...
Perhaps there could be some encouragement by TI or somebody with more clout than me to get the latest Energia release to work well with the MSP430G2553 Launchpad.
Please let me know if there is a known fix for this problem, as it is currently stalling my project and making me ask why CCS has Energia as a project type when Energia doesn't appear to work with TI MSP430G2553 Launchpad right out of the box...
Thanks, and sorry if my post has turned into a slight rant.. Just frustrated fighting the tools that are supposed to make my job as a developer easier... :-<