Jump to content


Photo

Serial/Serial1@57600bps on MSP432R Launchpad won't work

serial MSP432 57600

  • Please log in to reply
6 replies to this topic

#1 chillyjee

chillyjee

    Noob Class

  • Members
  • 4 posts

Posted 10 December 2016 - 10:36 AM

Hello guys,

 

I have been trying to connect my MSP432R Launchpad with another device that requires 57600 bps on Serial1 and after hours trying to find an error in my code I decided to test the Serial1 port.

 

Thus I uploaded the following test code and connected RX to TX (P3.2 <-> P3.3) :

void setup() {
  Serial.begin(115200);
  Serial1.begin(115200);
  Serial.println("Starting...");
}

void loop() {
  Serial1.write('A');
  if (Serial1.available()) {
    int inByte = Serial1.read();
    Serial.write(inByte); 
  }
  delay(1000);
}

So far everything works as expected. 

 

Then I try the same code but with Serial1.begin(57600) but it won't work, I won't get any data from the Serial1 port. (I tried several other rates and it seems that only 9600bps and 115200bps were working correctly).

 

Anyone knows about this issue ? Thanks in advance.

 

PS : Even the back channel UART to computer Serial.begin(57600) seems broken



#2 Fmilburn

Fmilburn

    Level 3

  • Members
  • 528 posts
  • LocationSeattle

Posted 10 December 2016 - 08:27 PM

Hi @chillyjee

 

I noticed this bug in Energia V17.  It seems to be fixed, at least for back channel UART to the serial monitor, in Energia V18.


  • bluehash and chillyjee like this

#3 chillyjee

chillyjee

    Noob Class

  • Members
  • 4 posts

Posted 11 December 2016 - 08:08 AM

Thank you, I installed V18 and everything is fine now !


  • bluehash likes this

#4 JasonP

JasonP

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationIdaho Falls, ID

Posted 13 December 2016 - 07:07 AM

@Fmilburn, @chillyjee, @energia

 

I have updated to Version 18 because I was having issues with various Baud Rates on Serial and Serial1.  After the update I was able to use baud rates 4800 and above.  However I can not get baud rates below 4800 to work.  I really need a 1200 baud rate to work on Serial1 as the sensor I need to communicate with has a set baud rate of 1200.  Can either of you verify that this does not work please.

void setup() {
  Serial.begin(1200);
  Serial1.begin(1200);
  Serial.println("Starting...");
}

void loop() {
  Serial1.write('A');
  if (Serial1.available()) {
    int inByte = Serial1.read();
    Serial.write(inByte); 
  }
  delay(1000);
}


#5 Fmilburn

Fmilburn

    Level 3

  • Members
  • 528 posts
  • LocationSeattle

Posted 13 December 2016 - 11:50 PM

It did not work on Serial back to the terminal when I tried it just now but I don't have any other information on the implementation.


  • JasonP likes this

#6 JasonP

JasonP

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationIdaho Falls, ID

Posted 14 December 2016 - 02:57 AM

@Fmilburn, @energia, I think this is officially an Energia issue.  I have probed both Rx and Tx pins of Serial1 port  with a logic analyzer and see no activity below 4800 baud.  Note that I did try 2400, 1200, 300.  



#7 JasonP

JasonP

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationIdaho Falls, ID

Posted 14 December 2016 - 03:01 AM

 Posted new issue MSP432 Serial baud rates. #946





Also tagged with one or more of these keywords: serial, MSP432, 57600

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users