Kyuugatsu

[SOLVED] Cannot get Serial communication to work with Launchpad 1.5 and MSP430G2553

13 posts in this topic

I am just trying to do something extremely simple, such as:

void setup(){
  Serial.begin(2400); 
}

void loop(){
  Serial.println("TEST");
}

Yet it does not work. I have rotated the RX/TX jumpers and it doesn't help, selected the correct board in Energia, selected the correct baud in the serial monitor and nothing ever shows up. Nothing is connected to my Launchpad.

 

I am using Windows 7, I have also tried running as administrator.

 

Does anyone have any idea what could be causing this? I am currently installing CCS to see if it would work in it.

Share this post


Link to post
Share on other sites

I did not have the drivers installed. I have them installed now and it seems to have helped a little - an extra COM port is showing up now, and the serial monitor is showing things - although those things are garbage.

 

Edit: Nevermind, I had the wrong baud this time. It works!

Share this post


Link to post
Share on other sites

Reviewed this topic, loaded drivers, still cannot get communication with my Windows 7 Pro SP1.   Any additional ideas?

Thanks,

smd61

Share this post


Link to post
Share on other sites

Reviewed this topic, loaded drivers, still cannot get communication with my Windows 7 Pro SP1.   Any additional ideas?

Thanks,

smd61

Are the jumpers on your board set to HW UART?

Share this post


Link to post
Share on other sites

// Core library

#if defined(__MSP430G2553__)

#else

#error Platform not supported

#endif

 

#include "Thermometer_430.h"

 

Thermometer_430 myThermometer;

 

void setup() {

  pinMode(PUSH2, INPUT_PULLUP);    

  myThermometer.begin();

  Serial.begin(9600);

  Serial.println("Thermometer");

  Serial.println("press PUSH2 to exit serial");   

}

 

void loop() {

  myThermometer.get();

  Serial.print(myThermometer.temperatureX10()/10, DEC);

  Serial.print(".");

  Serial.println(myThermometer.temperatureX10()%10, DEC);

  if (digitalRead(PUSH2)==LOW) {

    Serial.println("exit");

    Serial.end();

    while(true); // endless loop

  }

}

 

 

 

Nothing show up ... help please.  

Share this post


Link to post
Share on other sites

@@Medsimo you will have to learn to ask more specific questions to get any answers.

 

Did you already try the serial output example that this thread is about? Does it work?

 

If yes, simplify your code to narrow down what doesn't work. E.g. make it work without the temperature library first. etc.

Share this post


Link to post
Share on other sites

@chicken the serial output example does not work either... 

 

 

And thanks, I'll learn to ask specific questions !!!

Share this post


Link to post
Share on other sites

What LaunchPad are you using? ...................................................................................................... MSP430G2553LP v1.4


What operating system? ................................................................................................................... Windows 8.1


Did you install the required drivers according to instructions on http://energia.nu/guide/ ? .............. Yes.


Can you see a new serial port appear when plugging in the LaunchPad?  ...................................... Yes.


Share this post


Link to post
Share on other sites

Did you cross the serial lines as documented in the pinmap?

 

Note that version 1.4 is different from 1.5.

http://energia.nu/pin-maps/guide_msp430g2launchpad/

Somehow, when I posted a similar remark (the OP's photos indicated the wrong jumpers may have been set), it somehow ended up the new users "say hello" section.  How I managed that is a mystery... So it goes. :)

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