chillyjee 2 Posted December 10, 2016 Share Posted December 10, 2016 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 Quote Link to post Share on other sites
Fmilburn 445 Posted December 10, 2016 Share Posted December 10, 2016 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 2 Quote Link to post Share on other sites
chillyjee 2 Posted December 11, 2016 Author Share Posted December 11, 2016 Thank you, I installed V18 and everything is fine now ! bluehash 1 Quote Link to post Share on other sites
JasonP 5 Posted December 13, 2016 Share Posted December 13, 2016 @@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); } Quote Link to post Share on other sites
Fmilburn 445 Posted December 13, 2016 Share Posted December 13, 2016 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 1 Quote Link to post Share on other sites
JasonP 5 Posted December 14, 2016 Share Posted December 14, 2016 @@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. Quote Link to post Share on other sites
JasonP 5 Posted December 14, 2016 Share Posted December 14, 2016 Posted new issue MSP432 Serial baud rates. #946 Quote Link to post Share on other sites
Concordance 0 Posted April 16, 2017 Share Posted April 16, 2017 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? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.