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.

ENERGIA: Errors when compiling Wire Master Reader code (Reads data from an I2C/TWI slave device)

Part Number: ENERGIA
Other Parts Discussed in Thread: MSP430G2553

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);
}

**Attention** This is a public forum