LoveShadow 0 Posted April 9, 2020 Share Posted April 9, 2020 (edited) Hello! I've got a problem when I want to show the output on serial monitor of a GPS. When I put a basic example (fade example) and the TX of the GPS on the TX of MSP430 (P1_2 pin) the output shows good, without any problem. The baud rate was the stock one (9600). When I try to make the same thing on other pins (I've choosed RX of GPS to P1_3 and TX of GPS to P1_4) a scrambled output takes place on the serial monitor and I don't really know what to do. I'll attach the code, maybe it's a code issue. Thanks in advance! I'm new in this so take me easy please //THE CODE https://pastebin.com/cjFyjHns #include <SoftwareSerial.h> static const int RXPin = P1_4, TXPin = P1_3; static const uint32_t GPSBaud = 9600; // The serial connection to the GPS device SoftwareSerial ss(RXPin, TXPin); void setup() { Serial.begin(115200); ss.begin(GPSBaud); } void loop() { // Output raw GPS data to the serial monitor while (ss.available() > 0){ Serial.write(ss.read()); // delay(10); } } Edited April 15, 2020 by bluehash [ADMIN] Please use code tags Quote Link to post Share on other sites
Rei Vilo 695 Posted April 9, 2020 Share Posted April 9, 2020 Which board? Please read Information to Provide When Asking for Help Quote Link to post Share on other sites
LoveShadow 0 Posted April 9, 2020 Author Share Posted April 9, 2020 Sorry, thought it would be enough what is in tags. http://www.ti.com/tool/MSP-EXP430G2ET this particular one , MSP430G2553 LaunchPad Development Kit Rev 2.0 IDE used : Energia IDE 1.8.7E21 OS used : Windows 10 Quote Link to post Share on other sites
Rei Vilo 695 Posted April 9, 2020 Share Posted April 9, 2020 Keep in mind the MSP430G2553 has only 512 bytes of RAM. It may not be enough for the buffers of two serial ports. Try with a more capable MCU. Quote Link to post Share on other sites
LoveShadow 0 Posted April 9, 2020 Author Share Posted April 9, 2020 I've tried with this one as well, and it did not work. https://www.electronicwings.com/ti-launchpad/gps-module-interfacing-with-msp-exp430g2-ti-launchpad 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.