Jump to content
43oh

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


Recommended Posts

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

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);
}
Link to post
Share on other sites
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...