Back to IDE 2.3.3 and board 2.0.18-20240930 - the current latest versions.
I find that I can get Serial0 prints to work while using the debugger, but not regular Serial prints. I would love to know if there is a way around this.
I do see regular Serial prints inside Setup() but not inside Loop() - very weird.
In order to get the Serial0 prints I use a USB connector with a Prolific PL2303C chip inside it, made by Dtech and bought off Amazon.
Warning!!!! Do not connect the red +ve line as it puts out 5V, but you do need the black gnd connected. I have the green line in TX0 (embossed TX1 on my board???) and the white line in RX0. You need to have a USB connection into the Nano's USB-C connector for uploading and for powering the Nano, and another USB connection into the Dtech port.
This is my test code - just a slightly modified Blink:
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
delay(2000);
Serial.println("Serial starting - 18 Nov 2024 #2");
Serial0.begin(115200);
delay(2000);
Serial0.println("Serial0 starting - 18 Nov 2024 #2");
}
// the loop function runs over and over again forever
void loop() {
static int i = 1;
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
Serial.println("Serial: " + String(i));
Serial0.println("Serial0: " + String(i));
i = i+1;
}

