New Artemis Nano - Only Two Characters to Serial Monitor in IDE - No Further Execution

Background

Brand new Artemis Nano

Win 10

Arduino 1.8.13, fresh install

Core 2.0.1 with the understanding that the serial monitor needs to be closed during upload

“Blink” runs fine

Symptom and/or Red Herring

On load of Arduino IDE

…\core-implement\HardwareSerial.cpp: In member function ‘int UART::printf(const char*, …)’:

…\core-implement\HardwareSerial.cpp:153:19: warning: variable length array ‘buf’ is used [-Wvla] char buf[space];

Test Code

void setup() {
  pinMode(19, OUTPUT);
  Serial.begin(9600);
  while (!Serial){};
  Serial.print("Hello.");
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(19, HIGH);   
  delay(500);               
  digitalWrite(19, LOW);    
  delay(1000);               
}

Results

Serial monitor output: “10:56:10.798 → He”

LED activity: None

Thanks in advance.

If you use an older firmware core version do you have the same issue?

Thanks for quick reply. Excellent. I’m up and running.

Retrograde to 1.1.2

Results as expected

Serial Monitor: 08:26:13.209 → Hello.

Arduino Watch Window:

Sketch uses 8736 bytes (0%) of program storage space. Maximum is 960000 bytes.

Global variables use 33820 bytes of dynamic memory.

Artemis SVL Bootloader

Got SVL Bootloader Version: 5

[##################################################]Upload complete

Hi there - this line

while (!Serial){};

is broken in v2.0.1

https://github.com/sparkfun/Arduino_Apollo3/issues/274

Try commenting that out for now (until we can fix it in the next release)

Thank you. I’ll give it a shot.