Sign in to follow this  
Followers 0
chillyjee

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

8 posts in this topic

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

@@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.  

Share this post


Link to post
Share on other sites

I tried to run this code and hook up the wire, but I can't get it to work at any baud rate.  Any suggestions?  A few days earlier the pins seemed to be working, but perhaps I fried them hooking up a transistor backwards to the  5V line? 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0