Hey
I fixed my probleme, i had to select "old bootloader" (tools > processor > Atmega328 (old bootloader)) and then it worked for me. I got the answer from the Arduino discord server!
Greetings,
Spllit1!
Same problem here (pico, Linux Appimage, 2.0.3 . Most of the time it doesn`t upload. Old version works perfectly.
Also same problem. IDE2.0.4 under Win10 in combination with a Pi Pico.
Programm is complied, uploaded and runs after a board reset. But in 9 out of 10 tries the IDE won't register that the upload was finished and gets stuck. The only option is to restart the IDE to be able to upload again.
Having a similar issue on Mac 13.1 intel based. I move between a lot of different devices and sometimes I upload to the wrong device or a bad device (no longer plugged in). In these and other cases the upload never finishes. In the old IDE I could simply wait or unplug the device and the upload would quickly end. Now I have to restart IDE 2 and it's a big pain.
Hi @scottberry. The problem you describe seems unique in that the other reports have been of the IDE never recognizing the completion of a successful upload process.
I do sometimes see reports of a hang on a failed upload, but after investigation these have turned out to be that the upload tool for the board (e.g., AVRDUDE uploader tool is designed to spend a ridiculously long time retrying the upload after the failed attempt. In my experience the tools do usually give up and exit with an error eventually, but it might seem like a hang to those who are impatient, especially if they aren't getting any feedback about the process due to not having enabled the verbose upload preference.
As you mentioned, we can usually force the tool to exit immediately by unplugging the board. However, that is not possible if you happened to select the wrong port from the Arduino IDE menus and the device producing that port can't be disconnected.
Which Arduino board are you using when you encounter this problem?
Can you provide a specific set of instructions I can follow to reproduce the problem.
I'm going to ask you to post the full verbose output from an upload attempt when the hang occurs.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select Arduino IDE > Settings... from the Arduino IDE menus.
The "Preferences" dialog will open. - Uncheck the box next to Show verbose output during:
โ
compilation in the "Preferences" dialog. - Check the box next to Show verbose output during: โ upload.
- Click the "OK" button.
- Attempt an upload, as you did before.
- Wait until you are certain the upload has gone into the hang state.
This would typically be indicated by a lack of any new text being printed to the "Output" panel at the bottom of the Arduino IDE window, or perhaps by the same text being repeated over and over again as if the tool had gone into a perpetual loop state. - Right click on the black "Output" panel at the bottom of the Arduino IDE window.
- From the context menu, click Copy All.
- Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press Ctrl+V.
This will paste the compilation output into the code block. - Move the cursor outside of the code tags before you add any additional text to your reply.
- Click the "Reply" button to post the output.
I'll post debug, sure. But, as you noted, it's when the device isn't connected, wrong device selected or the device just doesn't respond correctly. In IDE v1 when you unplugged the device avrdude would quickly die. Now, even when closing the window for that specific sketch, avrdude continues to run in the background and eventually uses a bunch of CPU and I have to manually kill it. A new window will work fine for the sketch to upload, so not sure what avrdude is doing.
I don't know why there isn't a "cancel" button for this, just kill the avrdude process and let's move on. There are many reasons why the upload will fail, not being able to resolve that in some tactful way for the user seems like the issue.
This feature is requested: Allow user to terminate compilation and upload processes ยท Issue #1199 ยท arduino/arduino-ide ยท GitHub
Sketch uses 712 bytes (2%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\user\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\user\AppData\Local\Temp\arduino\sketches\7BECEFD194370413231E087CD41B8ADA/sketch_oct16a.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\user\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM4
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xea
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
Just a guess. You're using a Nano and have 328P selected; try the old bootloader option.
If that does not help or of the guess about the Nano is incorrect, please provide all details of your project.
Note:
the originl question was related to a Raspberry Pi Pico W.
I also wonder why there is no cancel button, i am uploading via OTA and 70% it keeps uploading even though the device already has rebooted
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.