I have tried to upload new sketches to my arduino uno using a USB connection, but whenever I click upload in the IDE, the code compiles and the pop-up for uploading appears and just stays there. The code doesn't even get uploaded. I am new to arduino, and I hope I haven't broken anything. Any information would be helpful. The output monitor just displays the results of the last sketch I uploaded
yes to us too....
Which COM Port has been assigned to your UNO Board? This can be seen at the right bottom corner of the IDE.
My solution is to re-select board, port (and bootloader if needed).
I experience this (title) when I remove one Arduino (containing old bootloader) and insert a similar Arduino (standard bootloader). The compile works, but the verify (upload) never finishes.
This also happens when I remove either Arduino, use the IDE, stop the IDE, then start the IDE again, and re-insert the board. The IDE will let me compile, but not upload.
Hi @marcusphillips. I'm going to ask you to post the full verbose output from an upload.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select File > Preferences... (or Arduino IDE > Settings... for macOS users) 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 sure the upload has gone into the hang state
(as indicated by no additional output being printed to the "Output" panel at the bottom of the Arduino IDE window, or else the same messages being repeated over and over again there). - 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.
The port I use is COM5
How do you change the bootloader
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\hasan\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\hasan\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\hasan\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\hasan\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\hasan\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\hasan\AppData\Local\Temp\arduino\sketches\64B0ECA65DC5E36FD466952F439E38B2\sketch\BareMinimum.ino.cpp -o nul
Generating function prototypes...
C:\Users\hasan\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\hasan\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\hasan\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\hasan\AppData\Local\Temp\arduino\sketches\64B0ECA65DC5E36FD466952F439E38B2\sketch\BareMinimum.ino.cpp -o C:\Users\hasan\AppData\Local\Temp\1861064213\sketch_merged.cpp
C:\Users\hasan\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\hasan\AppData\Local\Temp\1861064213\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\hasan\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\hasan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\hasan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2\\sketch\\BareMinimum.ino.cpp" -o "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2\\sketch\\BareMinimum.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\hasan\AppData\Local\Temp\arduino\cores\arduino_avr_uno_34ad99ab48c2fdad6c176433aca58077\core.a
Linking everything together...
"C:\\Users\\hasan\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2/BareMinimum.ino.elf" "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2\\sketch\\BareMinimum.ino.cpp.o" "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2/..\\..\\cores\\arduino_avr_uno_34ad99ab48c2fdad6c176433aca58077\\core.a" "-LC:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2" -lm
"C:\\Users\\hasan\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2/BareMinimum.ino.elf" "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2/BareMinimum.ino.eep"
"C:\\Users\\hasan\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2/BareMinimum.ino.elf" "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2/BareMinimum.ino.hex"
"C:\\Users\\hasan\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\hasan\\AppData\\Local\\Temp\\arduino\\sketches\\64B0ECA65DC5E36FD466952F439E38B2/BareMinimum.ino.elf"
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\hasan\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\hasan\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM5" -b115200 -D "-Uflash:w:C:\Users\hasan\AppData\Local\Temp\arduino\sketches\64B0ECA65DC5E36FD466952F439E38B2/BareMinimum.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\hasan\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Here is what shoes up in my IDE
For my Arduino, I do not change the bootloader, I change the IDE selection for "old bootloader" (IDE >> TOOLS >> PROCESSOR >> OLD BOOTLOADER)
Please try this experiment and then report back with the results:
This procedure is not intended to solve the problem. The purpose is to gather more information.
- Connect the Arduino board to your computer with a USB cable.
- Press and release the button on the Arduino board that is marked "RESET".
Now please reply here on the forum thread with the answer to the following question:
- Did you see the "L" LED blink multiple times quickly immediately after you released the "RESET" button?
Please ignore the information about the bootloader. That information is only relevant when using an Arduino Nano board. The Arduino Nano board was manufactured with two different bootloaders at different periods of time, so you must select the appropriate bootloader setting from the Arduino IDE menus when using an Arduino Nano board.
But we know you are not using an Arduino Nano board because you told us you are using an Arduino Uno. The Uno was only ever manufactured with a single bootloader. So there is no need or way to select a bootloader setting when using the Arduino Uno board.
@xfpd please note that, although your advice is very helpful for those using a Nano, it only causes confusion or distraction for those who are using a different board. So please make sure the support recipient is using a Nano before bringing up the subject of selecting Tools > Processor > ATmega328P (Old Bootloader) from the Arduino IDE menus (note also the correct menu item name is "ATmega328P (Old Bootloader)")
Yes. The L LED blinks
This error might be caused by having the wrong port selected from the Tools > Port menu in Arduino IDE.
Please perform this experiment to verify that the port you have selected is your Arduino board:
With some boards, the port will be labeled with the board name in the menu (e.g., "COM42 (Arduino Uno)"). In this case, you can be fairly confident that you have identified the port. But for other boards the port will not be labeled. You can positively identify the port using this procedure:
- Disconnect the USB cable of the Arduino board from your computer.
- Select Tools > Port from the Arduino IDE menus.
- Take note of the ports, if any, listed in the menu.
- Close the Tools menu.
The ports list is only updated when the Tools menu is re-opened, so this step is essential.
- Connect the Arduino board to your computer with a USB cable.
- Select Tools > Port from the Arduino IDE menus. - If a new port is listed in the menu, that is the port of your Arduino board.
Select that port from the menu and try uploading again.
If the upload still fails, or if no new port appeared after you plugged the Arduino board into your computer, add a reply here to let us know and we'll investigate the problem further.
The problem still isn't solved. HHope you can investigate this issue
It is possible for a short or external circuitry connected to the Arduino board to interfere with the upload process, causing this type of upload error.
Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., strands of wire or component leads) on the board or on the surface the board is sitting on.
If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:
- Disconnect the USB cable of the Arduino board from your computer.
- Disconnect any shields, modules, external circuitry, etc. from your board.
- Connect the Arduino board to your computer with a USB cable.
Now try uploading a sketch to the board again. Does the upload succeed?
This experiment will determine whether the upload error was caused by interference from your external circuitry. If so, you can then focus your attention on identifying the specific problem with the circuit and resolving it.
2 posts were split to a new topic: Upload fails: "programmer is not responding"
9 posts were split to a new topic: Stuck uploading to Arduino UNO
U probaly removed the atmega of your arduino one time and you put it back in its place reversed, try to reverse it again
can u tell me how to do that
Hi @mihit. Are you asking about how to do the thing that was described in post #20?
If so, the first thing you need to know is that this is only relevant for the UNO R3 boards that have a socketed ATmega328P microcontroller:
Note that the ATmega328P board is in a socket that allows it to be removed from the board:
This is not relevant for boards that use a non-socketed microcontroller:
You can determine whether the ATmega328P is in the correct orientation in the socket by comparing the orientation of the chip on your board against the orientation of the chip in this picture:
If the orientation of the chip on your board is the same as the orientation of the chip in that picture, then the orientation is correct and you don't need to think about correcting the orientation. DO NOT waste your time and our time by switching the orientation if it is already correct in some silly hope that it might magically fix whatever problem you are having with your board.
If you do find that the orientation of the chip is wrong, remove it from the socket, turn it 180 degrees and then insert it into the socket again. You must be very careful while removing the chip from the socket. It takes a lot of force to remove it and the chip tends to come loose suddenly, but with some pins still in the socket. If you aren't careful, those pins will get bent, and might even break off. When inserting the chip back into the socket, you must also be careful to ensure all the pins are correctly aligned.
If you find that your chip is correctly aligned, then provide a detailed description of the problem you are having, including the full and exact text of any error or warning messages you might be encountering. Then we'll help you with the problem.
Hey @ptillisch ,
I face the same issue too and I see that your process is always similar. My problem is that I am facing the same issue on multiple boards (Arduino UNO WiFi, Arduino UNO) and multiple PCs. Do you have anything else to suggest?