Serial Monitor closes automatically when downloading.

Hi, Each time when I download a program, the Serial Monitor is closed. I Always use the Serial Monitor for output. I would like to have it open all the time so that the loading of a program and running it is faster. Can that be done?

(deleted)

I would like to have it open all the time so that the loading of a program and running it is faster

Wow- how often are you uploading new code that it makes it so important?

JimboZA:

I would like to have it open all the time so that the loading of a program and running it is faster

Wow- how often are you uploading new code that it makes it so important?

I just like to have short debugging cycles and it is annoying. But maybe the most important thing is that I miss the first output from the Arduino serial port (see other post).

I don't think you miss the first output, because my understanding is that when you open the monitor it resets the board so your sketch starts again anyway.

That might in itself be a problem of another sort though....

JimboZA: I don't think you miss the first output, because my understanding is that when you open the monitor it resets the board so your sketch starts again anyway.

That might in itself be a problem of another sort though....

I really would like to open the Serial Monitor without a Arduino reset. But I guess that is not supported.

Read Reply#5 on this thread

JimboZA: Read Reply#5 on this thread

If I understand corretly, this hack will also prevent a reset at upload. And that reset may be vital.

if you insisted, why not just put a delay after setup ? As I know the arduino will also reset after your open operation. at less you have the chance to catch output of your expected.

lostgdi: if you insisted, why not just put a delay after setup ? As I know the arduino will also reset after your open operation. at less you have the chance to catch output of your expected.

Yes I guess that is best.

An alternative to a delay is this:

void setup() {
  Serial.begin(9600);
  Serial.println(F("Waiting for 1 character"));
  while(Serial.read() == -1);
}

Set the return dropdown to "No line ending." The program will wait until you send a single character before moving on.

I think is a frequently-requested feature that the serial monitor be RE-opened after an upload, which would probably make the original poster happy. Since the serial monitor and avrdude (used for uploading) are actually separate programs, they can't both have the serial port open at the same time.