Sorry, my problem is about Arduino IDE 2.0.0-rc1, but I don't see a category for this.
At the moment I'm using a Adafruit Feather M0 Adalogger. Win10 device manager tells me, it is connected to COM11. At top of Arduino IDE is written "Adafruit Feather M0 at COM11" - that is correct. Also board info shows me VID and PID.
In the morning I had compiled and uploaded several versions of my sketch.
From one moment to the next, upload is not working:
--------------------------
Compilation complete.
Performing 1200-bps touch reset on serial port COM11
Waiting for upload port...
No upload port found, using address:"COM11" label:"COM11" protocol:"serial" as fallback
"C:\Users\Boss\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe" -i -d --port=COM11 -U true -i -e -w -v "C:\Users\Boss\AppData\Local\Temp\arduino-sketch-C5FD703E59E063C5909B18E7926A932F/M0-Klimalogger.ino.bin" -R
No device found on COM11
Upload error: Failed uploading: uploading error: exit status 1
----------------------------------------------------------
I closed IDE and start it again. I disconnected the board and connected it again. Nothing helps.
I think, that I seen in the morning a second port COM10 during upload. Is it correct?
Jürgen
P.S.: I never seen such a poor editor like here at Arduino forum! No preview, no icons for code. I copied error message from IDE to Notepad++, so it should be pure text. Why it is here so large and bold???
No preview ?
What about the preview panel on the right when composing a message ?
No icons for code ?
It is not well named, but the </> icon inserts code tags round selected text and the IDE has an option to copy code for the forum which adds code tags automatically
The board has a (not documented?) feature to double-click the reset button. Now upload is working on COM12.
--------------------------
Compilation complete.
Performing 1200-bps touch reset on serial port COM11
Waiting for upload port...
Upload port found on COM12
"C:\Users\Boss\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe" -i -d --port=COM12 -U true -i -e -w -v "C:\Users\Boss\AppData\Local\Temp\arduino-sketch-7A49B61A7E95F400820EA82EFB673456/Blink.ino.bin" -R
Set binary mode
...
Most of the boards with "native USB" interfaces can have problems with the "automatic reset" feature of the IDE. Especially if the current sketch isn't actively reading from USB (either because it has no USB/Serial code, or because the sketch has "hung.") It has to do with the board disappearing and reappearing "rapidly" compared to the amount of time it takes the Windows drivers to notice, essentially. (And the initial "reset" command requires USB to be listening.)