Skip to content

IDE remains in uploading state after successful completion of upload process #1801

Open
@lun82jiang

Description

@lun82jiang

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:

image

goes on and on even though the verbose upload output shows a completion of the job (I assume):

Sketch uses 3222 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 307 bytes (14%) of dynamic memory, leaving 1741 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\wormi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\wormi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM4" -b115200 -D "-Uflash:w:C:\Users\wormi\AppData\Local\Temp\arduino-sketch-0D4DC7263DFA72C1021B25AD2D7907C6/TestWriter.ino.hex:i"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\wormi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\wormi\AppData\Local\Temp\arduino-sketch-0D4DC7263DFA72C1021B25AD2D7907C6/TestWriter.ino.hex"
avrdude: writing flash (3222 bytes):

Writing | ################################################## | 100% 0.53s

avrdude: 3222 bytes of flash written

avrdude done.  Thank you.

To reproduce

Upload the following sketch to an Arduino board from a Windows 11 machine:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX

char Mymessage[10]; //Initialized variable to store recieved data
  
void setup() {
  Serial.begin(9600);
  // Begin the Serial at 9600 Baud
  mySerial.begin(9600);
}

void loop() {
  mySerial.readBytes(Mymessage,5); //Read the serial data and store in var
  Serial.println(Mymessage); //Print data on Serial Monitor
  delay(1000);
}

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: #1356


Additional reports

Workaround

  1. Select File > Quit from the Arduino IDE menus.
  2. Restart Arduino IDE.

Keywords

  • hang

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions