Skip to content

Due: SerialUSB port busy after disconnecting and trying to reconnect #4094

Closed
@odbol

Description

@odbol

This is a regression in 1.6.6. 1.5.5 works correctly.

On Arduino Due, upload any sketch:

void setup() {
  // put your setup code here, to run once:
SerialUSB.begin(115200);
}

void loop() {
  // put your main code here, to run repeatedly:
  SerialUSB.println("hello");
  delay(100);
}
  1. Upload it to the board using Native USB port.
  2. Run Serial monitor.
  3. It should connect and display the output correctly.
  4. Close Serial Monitor.
  5. Open Serial Monitor again.

Expected: it connects correctly.

Actual: get a Error opening serial port '/dev/cu.usbmodem1d111'. (Port busy) error. This happens in other apps too, like "Serial Tools" for OS X. It seems that when you close the connection on the PC side, the Arduino is not properly cleaning up and freeing the connection.

Tested on Arduino Due, OS X 10.10.5, with Arduino 1.6.6 (Due core 1.6.5).

Metadata

Metadata

Assignees

Labels

Architecture: SAMApplies only to the SAM microcontrollers (Due)USB: CDC serialSerial interface used by MCUs with native USB (e.g. Leonardo) to communicate with the computer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions