energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
794 stars 672 forks source link

RBL CC3200 - UART problem with EMT #711

Open MAHashmi opened 9 years ago

MAHashmi commented 9 years ago

Hi,

I am trying to use UART1 in Energia CC3200 EMT. I've put a loopback at pins 9 and 10. I've also written a code to bridge UART0 and UART1. However It's not working with "RedBearLab WiFi mini w/ CC3200 EMT" board settings. The problem is with serial receiving. Both the serial ports work fine when you are only transmitting/writing data (you can see the data on terminal etc.) but when you try to receive/read some data there's nothing.

If I choose the "RedBearLab WiFi mini w/ CC3200" with the same code, the UART works fine.

Has someone tried using UART1 in EMT before?

Thanks!

Serial Bridge Code:

void setup() {
  // initialize both serial ports:
  Serial.begin(9600);
  Serial1.begin(9600);
}

void loop() {
  // read from port 1, send to port 0:
  if (Serial1.available()) {
    int inByte = Serial1.read();
    Serial.write(inByte); 
  }

   if (Serial.available()) {
    int inByte1 = Serial.read();
    Serial1.write(inByte1); 
  }
}
juanoboy commented 9 years ago

Hi, I tried to port my application to EMT, using UART1 for both Tx and Rx. Using an oscilloscope, I think the Tx on UART1 is not working as well for the Launchpad with cc3200 EMT.