energia / msp432-core

MSP432 Core and Framework
14 stars 10 forks source link

Wire master write fails if delay of >= 500 is inserted #35

Closed robertinant closed 7 years ago

robertinant commented 8 years ago

The Sketch below will print garbage. If delay is reduced to 400 ms, the Sketch behaves properly.

#include <Wire.h>

void setup()
{
  Wire.begin(); // join i2c bus (address optional for master)
  Serial.begin(115200);
  Serial.println("Hello");
}

byte x = 0;

void loop()
{
  Wire.beginTransmission(4); // transmit to device #4
  Wire.write("x is ");        // sends five bytes
  Wire.write(x);              // sends one byte  
  Wire.endTransmission();    // stop transmitting

  Serial.println(x);
  x++;
  delay(500);
}
robertinant commented 7 years ago

Resolved and will be available in the next release.