-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port selection of Portenta H7 (M4 Core) is lost on every upload #43
Comments
I realize this is an old thread, but did you ever fix the issue. I have a new Portenta H7, that does exactly what yours was doing. I can uplad a sketch when putting the Portenta into Bootloader mode (two pushes on reset button). Once the sketch is uploaded, the serial port disappears, and I cannot connect with the serial monitor as a result. The program runs though. I have to push the reset twice again to make the port reappear to reload the sketch. |
@salasidis that is a different problem than what is tracked here. This issue is about the port selection in the IDE being lost, not the loss of the port itself on the board. The former is a bug in the Arduino IDE. The latter is a bug in the firmware running on your Portenta H7, and so off topic for this repository dedicated to the Arduino IDE code base. I see you have already posted to the appropriate place on the Arduino forum and are receiving assistance there: https://forum.arduino.cc/t/serial-com-port-issues-with-portenta-h7/982875 |
Describe the problem
When uploading to the M4 core of the Arduino Portenta H7 board, the port selection is lost.
🐛 It is inconvenient for the user to have to reselect the port after every upload, and may cause confusion if they didn't notice this happened.
To reproduce
Equipment
Steps
ⓘ Versions 4.0.2 and newer do not provide the required conditions to reproduce the fault due to arduino/ArduinoCore-mbed@29184e9
🐛 The port is no longer selected. You must select the port from the menu again after every single upload to this board.
Expected behavior
The port selected by the user remains selected after uploading.
Arduino IDE version
Original report
2.0.0-beta.2-snapshot.f9730ab
Last verified with
2.0.0-rc9.2.snapshot-ca47e8a
Operating system
Windows
Operating system version
10
Additional context
I suspect this is related to the behavior of the port of the native USB boards, where the USB CDC serial port disappears and reappears during the switch from the bootloader to the sketch application.
The Portenta H7 is unique in that it has two different board definitions, but only one of these ("Arduino Portenta H7 (M7 Core)") is associated with the USB VID/PID of the port:
https://github.com/arduino/ArduinoCore-mbed/blob/3.2.0/boards.txt#L104-L111
This causes the Arduino IDE's automatic board selection to lose the port selection when the selected board doesn't match the VID/PID of the port that appears at the end of the upload process.
Originally reported at: https://forum.arduino.cc/t/0-1-0-portenta-wonders-ide-released/671634/7
Another variant of this bug was reported at #82
Issue checklist
The text was updated successfully, but these errors were encountered: