Jump to content
Sign in to follow this  
blue minerals

Serial.println won't work in setup

Recommended Posts

I am moving from Arduino to the Energia 10 stellarpad/tiva and what worked there doesn't work here.

The Serial.println("inByte"); won't print in the serial window. Later on, in the loop portion, it will print.

 

void setup()
{
  // start serial port at 9600 bps:
  Serial.begin(9600);
  Serial.println("inByte");  // doesn't print
 
}

Share this post


Link to post
Share on other sites

I just ran that Sketch on both Energia release 10 and the soon to be released 11 and both print the string in setup().

What if you put a small delay(100) at the beginning of the Sketch, does that solve your problem?

Share this post


Link to post
Share on other sites

Probably you are opening the serial monitor console after the mcu send the message. Just open the window and then push the RESET button to repeat all the code.

 

If I recall correctly Arduino boards reset the status when you open the serial monitor, but energia doesn't.

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  

×