I have my Due connected to a Windows 11 computer through the Native USB port at 9600 baud and I'm running IDE 2.3.8. The port shows as COM8 and the Serial Monitor window shows 9600 baud. I have not succeeded in getting any output to the Serial Monitor. Here's the test code, which turns the built in LED on and off as expected, but without the expected output.
I have read many posts on the forum reporting similar problems, and have tried some of their suggestions/solutions, but without any luck.
void setup() {
Serial.begin(9600); // open the serial port at 9600 bps:
while (!Serial)
;
pinMode(LED_BUILTIN, OUTPUT);
delay(1000);
}
void loop() {
Serial.println("High");
digitalWrite(LED_BUILTIN, HIGH);
delay(2000);
Serial.println("Low");
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}