Environment:
Arduino IDE 1.8.13
JJRobots Devia board (recognized as Arduino Zero (Native USB port)
Windows 10
SAMD 1.8.10
With the above configuration the following minimal sketch operates as expected and outputs 2 rows of asterisks to the serial monitor.
Updating the SAMD board to 1.8.11 cause the flush at line 8 to hang and only 1 row of asterisks is sent to the serial monitor.
What is causing this?
void setup()
{
SerialUSB.begin(115200); // Serial output to console
while (!SerialUSB);
Serial1.begin(115200);
SerialUSB.println("Init...");
SerialUSB.println("\n***************************************");
Serial1.flush();
SerialUSB.println("\n***************************************");
Serial1.print("+++"); // To ensure we exit the transparent transmision mode
}
// MAIN LOOP
void loop()
{
}