Open lun82jiang opened 1 year ago
Hi @lun82jiang. Thanks for your report.
I would like to learn more about the bug you reported:
Does this problem occur every time you attempt an upload on your Windows 11 machine, or is it intermittent (e.g., sometimes the IDE releases from the "Uploading..." state when the upload process finishes, and other times the IDE stays perpetually in the "Uploading..." state)?
Please try this experiment:
Please comment here to let us know whether Arduino IDE remains in the "Uploading..." state even after the upload of that bare minimum sketch finishes?
The purpose of this experiment is to determine whether uploading the specific sketch you provided above is a required condition for the fault to occur, or whether the fault occurs with any arbitrary sketch being uploaded.
Hi Per1234, I was able to resolve the problem doing the following: Reinstalled Arduino IDE Deleted the AppData\Local\Arduino15
Now it seems I was doing Serial communication on the RX/TX (P00 and P01) on Uno (using SoftwareSerial), and then I started reprogramming the board. This left some kind of state on the Windows 11 system. I'm not sure if it's going to come back. But if it does, I'll update this thread.
When the problem persisted, it was NOT intermittent.
Since I had 2 boards, soon both started to have the same problem (I was loading the faulty program on both of them).
Reinstalling/Restarting IDE didn't help.
Even flashing basic blink program would still result in being stuck at Uploading...
This happened to me in Windows 10 a few builds back, so I don't think it's Windows 11 specific. Restarting the IDE fixed it, until it happened again.
Having similar issues as others regarding the "loading" message not going away after deploying code via mounted drive for a RP2040 pico W. Don't think it is a specific problem to pico W but more related to the code being deployed, starts running, has an issue and creates a race condition for the IDE waiting for a response related to setting up com port.
The following code is a simple test of trying to get Dallas OneWire protocol working on a Pico W. Deploy the code, loading message doesn't go away, get a windows USB error message notification and requires exiting the IDE and pushing boot sel button via pico power up.
Deploy blink code and works as expected. If I comment out the code related to sensors.begin() and reading sensor temperature then code is able to deploy and works related to sending back messages in the loop.
You should be able to deploy the following code on a Pico W and get the error.
I am runnong on Arduino IDE 2.0.3 using earlephilhower board manager https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json to select for Pico W.
The Arduino support for pico does not extend to pico W as the pico W hijacked a GPIO line used for the blink code for the Wifi module and then gave it back via external hardware.
/* Arduino DS18B20 temp sensor tutorial
More info: http://www.ardumotive.com/how-to-use-the-ds18b20-temperature-sensor-en.html
Date: 19/6/2015 // www.ardumotive.com */
//Include libraries
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into pin 2 on the Arduino
#define ONE_WIRE_BUS 2
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
void setup(void)
{
Serial.begin(9600); //Begin serial communication
Serial.println("Arduino Digital Temperature // Serial Monitor Version"); //Print a message
sensors.begin();
}
void loop(void)
{
// Send the command to get temperatures
sensors.requestTemperatures();
Serial.println("Temperature is: ");
Serial.println(sensors.getTempFByIndex(0)); // Why "byIndex"? You can have more than one IC on the same bus. 0 refers to the first IC on the wire
//Update value every 1 sec.
delay(1000);
}
@per1234, I am seeing a similar issue on MacOS Monterey 12.6.3 using IDE 2.0.3. and SAMD boards (Nano 33 IoT, MKR 1010, MKR Zero): Symptoms:
Error msg:
Failed uploading: no upload port provided
Steps to reproduce:
Sometimes the program will upload fine. Sometimes it will upload, but the serial port will not reappear Sometimes it will reappear, then disappear when you make any change to the code and upload a second time.
Steps attempted to fix (these do not work consistently):
Sometimes the double tap will make the serial port reappear, sometimes it won't. Every time I double-tap, I get the soft pulse of the bootloader mode from the board, though.
It's a strange problem in that it is inconsistent, yet happens frequently enough to prohibit useful work. My solution has been to back down to IDE 1.8.19, which is not an adequate solution.
Another observation, perhaps unrelated: if I leave IDE2.0 open when closing the lid of my laptop, the OS will occasionally restart while closed. If I make sure to close the IDE2.0, the OS doesn't restart.
Arduino UNO (Chinese) ; Windows10 ; IDE 2.0.4 ; AVR 1.8.6 PROBLEM : stays in uploading state despite having uploaded ; works ok on the hardware ; except there is no output on Serial Monitor ; this is a recent problem and im scratching my head looking for answer So most of my work has come to an abrupt stop.
Describe the problem
I have a dual boot system with windows 10 and windows 11. In windows 10 I have no problem, but in windows 11, the "Uploading" process:
goes on and on even though the verbose upload output shows a completion of the job (I assume):
To reproduce
Upload the following sketch to an Arduino board from a Windows 11 machine:
Expected behavior
Arduino IDE is released from the "Uploading" state when the upload process is finished.
Arduino IDE version
2.0.3 CLI version 0.29.0
Operating system
Windows
Operating system version
Windows 11 Pro version 22H2
Additional context
It seems windows 11 is still occupying the USB communication somehow and not releasing it.
Related: https://github.com/arduino/arduino-ide/issues/1356
Additional reports
Workaround
Keywords
Issue checklist