At what point in the upload process, should it be expected that the sketch already running on the Arduino should stop ?
If the sketch already running on the Arduino is writing stuff to the computer through the serial/USB connection, does this interfere with the process of uploading the new sketch ?
If you write a sketch which writes serial data to the computer, like this one:
#include <Arduino.h>
#define LEDPIN (13)
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(LEDPIN, OUTPUT);
Serial.begin(9600);
}
void loop()
{
int cyc=500 ;
digitalWrite(LEDPIN, HIGH); // set the LED on
delay(cyc); // wait for a second
digitalWrite(LEDPIN, LOW); // set the LED off
delay(cyc); // wait for a second
Serial.println("tick");
}
And then I start the serial monitor, set the speed to 9600, and I see
tick
tick
tick
and then I close the serial monitor, and start the serial monitor again, then I don't see any tick.
Should I expect not to see any tick, the second ( third, fourth ) time I start the serial monitor ?