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.
I would greatly appreciate help resolving the error messages below created when verifying the Wire Master Reader code included in this posting.
IDE: Energia 1.8.11E23 running on Windows 7 64 bit
Energia: 1.8.11E23 (Windows 10), Board: "MSP-EXP430G2 w/ MSP430G2553"
Master device: Launch Pad MSP-EXP30g2ET with a MCU part type MSP-EXP430G2553
Error Messages:
C:\energia-1.8.10E23-windows\energia-1.8.10E23\hardware\energia\msp430\libraries\Wire\utility\twi.c: In function 'twi_disable':
C:\energia-1.8.10E23-windows\energia-1.8.10E23\hardware\energia\msp430\libraries\Wire\utility\twi.c:443:5: error: 'UCBzCTLW0' undeclared (first use in this function)
C:\energia-1.8.10E23-windows\energia-1.8.10E23\hardware\energia\msp430\libraries\Wire\utility\twi.c:443:5: note: each undeclared identifier is reported only once for each function it appears in
Multiple libraries were found for "Wire.h"
Used: C:\energia-1.8.10E23-windows\energia-1.8.10E23\hardware\energia\msp430\libraries\Wire
exit status 1
Error compiling for board MSP-EXP430G2 w/ MSP430G2553.
NOTE: I have deleted all but one instance of wire.h
// Wire Master Reader // by Nicholas Zambetti <http://www.zambetti.com> // Demonstrates use of the Wire library // Reads data from an I2C/TWI slave device // Refer to the "Wire Slave Sender" example for use with this // Created 29 March 2006 // This example code is in the public domain. #include <Wire.h> void setup() { Wire.begin(0x5A); // slave address (Address not required if master) Serial.begin(9600); // start serial for output } void loop() { Wire.requestFrom(2, 6); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } delay(500); }
Hi Robert,
I tried to get energia-1.8.10E23 working but had no luck. I read in a few different forums others having issues and suggest falling back to energia-1.8.7E21.
I did and your code builds and programs fine in the previous version.
I did what I can hoping it was simple, but for Energia issues we recommend posting them to the 43oh forum (forum.43oh.com). If you're using CCS and have an issue, we'd be happy to support your questions.
Hi Dennis,
Thanks for your help, it's greatly appreciated!. I'll give your suggestions a try.
Thanks again,
Bob
**Attention** This is a public forum