I have two genuine Arduino boards. One Uno R2 and the other Mega 2560. When I try to upload any programs to either of the two boards, the status line keeps saying "uploading ..." For simplicity, I have used the "Blink" example
The program recognizes the correct com ports, the power and L lights on both the boards turn ON when I connect the usb cable.
I am using IDE 1.6.7 and I have Windows 10 Pro installed on my laptop. I have used later versions before, but I switched to 1.6.7 after I started having this problem. I though may be the problem was with the driver.
UNO passes the loop back test but Mega FAILS the loop back test. For mega, I don't even see the TX and RX light blink when I send a command in serial monitor.
File > Preferences > Show verbose output during: > upload(check) > OK
Attempt upload
After it fails to upload select all the text in the black console window on the bottom of the Arduino IDE window and paste it here using code tags(the </> button). If that's not allowed because the output is too long then put it in a text file and attach.
This will give us more information to hopefully help you find the solution.
The problem is the program never finishes uploading. I copied this text almost 15 minutes after I hit Upload. The status still shows "uploading.." Anyways, I have copied all that I see in black window for both the boards tested separately.
I have even tried replacing the USB cable and that gives the same results as well.
Mega:
Sketch uses 1,462 bytes (0%) of program storage space. Maximum is 253,952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8,183 bytes for local variables. Maximum is 8,192 bytes.
C:\Users\Junaid Jamal\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/bin/avrdude -CC:\Users\Junaid Jamal\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/etc/avrdude.conf -v true -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:C:\Users\JUNAID~1\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.hex:i
UNO R2:
Sketch uses 928 bytes (2%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
C:\Users\Junaid Jamal\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/bin/avrdude -CC:\Users\Junaid Jamal\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/etc/avrdude.conf -v true -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\JUNAID~1\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.hex:i
jjamal:
The problem is the program never finishes uploading.
Yes, I realize that. I did read the title of your post. The reason I asked you to post what's in the console is it can provide useful information, which it has done in this case. I can see that you've updated your Arduino AVR Boards version to a known bad version and then never bothered to update to the fixed version that came after it. Just saying "IDE 1.6.7" doesn't actually mean as much as you might think.
Try this:
Select Tools > Board > Boards Manager from the Arduino IDE menus.
Wait for the updates to finish.
Find "Arduino AVR Boards by Arduino" in the list of boards platforms. Click on it
Select "1.6.13" from the "Select version" drop down menu.
ViniciusPolo:
I have the same problem with my chinese Nano v3.0.
The solution for me was selecting another board model on Tools->Boards.
I had to select Arduino Pro Mini and the uploading worked.
This probably means you were supposed to select Tools > Board > Arduino Nano and then Tools > Processor > ATmega328P (Old Bootloader). But if you prefer to use the Pro Mini board definition, that will work as well.