Serial Monitor not working - Arduino Due/IDE 2.3.8

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);
}

  • Check the Baud Rate: Ensure the dropdown in your Serial Monitor is set to 9600.
  • Check the Port: Go to Tools > Port and make sure you've selected the one labeled "Arduino Due (Programming Port)".

Isn't the native USB port SerialUSB? The programming port is Serial?

1 Like

For native USB the baudrate settings are irrelevant.

1 Like

That was the problem! Works fine on the programming port. Thanks.

You can mark your topic as solved by clicking the solution "button" under the most useful post. That let others with the same problem or those that want to help know that a solution was provided.

image