Closed
Description
When you upload a new sketch to a SAMD board, the serial port list drops your port choice and chooses the one above it when the board is reset for upload.
Steps:
- Open new sketch
- Choose board and port
- Upload to a SAMD board
- Note the serial port choice after upload. It will be the one above your port in the list.
This causes confusion when you try to open the serial port. You can open the port, but you have to re-choose it first.
MacOS Big Sur 11.2.3 20D91
This is related to an earlier issue, #271
NOTE: this only happens if the port above your board is a virtual port.
For example, if it is a BluetoothSerial port, it happens, but if you delete the reference to the BluetoothSerial device, and therefore the port, it doesn't happen. I tested using a BluetoothSerial HC-05 board.
Activity
[-]Serial power re-enumerates after upload with SAMD boards (probably other USB native)[/-][+]Serial port re-enumerates after upload with SAMD boards (probably other USB native)[/+]tjpetz commentedon Mar 29, 2021
I have this same problem with the mbed based Nano 33 BLE Sense. I’m also using MacOS Big Sur.
It’s a particular challenge when using 2 boards simultaneously as after upload the active window will switch to the other port. This makes it particularly difficult to see any serial data right after the load.
Also resetting the Arduino board will cause the same rescan and thus confusion on which port is to be used.
Xtreemtec commentedon Apr 5, 2021
Running a SAMD21 Zero all day on windows and while programming it enumourates a different port. ( but we are used to this as programming port always has a different comm port) but nicely jumps back for serial monitor. So i cant relate to this for windows 10 at this point.
ubidefeo commentedon Apr 8, 2021
@tigoe
what's the process to create such virtual serial port?
I'd like to replicate the setup to test
tigoe commentedon Apr 8, 2021
HI @ubidefeo,
All macOS, as I said:
/dev/tty.HC-05-XXXX
Hope that helps and you can duplicate it. If not, let me know.
1 remaining item