Many problems uploading

I have been having many problems uploading to arduinos. I am sure all the obvious thinks, like wrong com port are OK. I get a successful load about 1 try in 10.

I have tried this on 2 different PCs and several arduinos, both genuine unos and clones. I am an experienced PC user.

I was about ready to give up but I decided to try getting the pocket AVR programmer. This also fails on my systems with verification errors.

I attempted to make the upload using the command line instead of the IDE and this works fine. I have now uploaded several unos, with several sketches on 3 PCs and all work with the command line, but fail with the IDE.

It is a pain to use the command line, and I cannot believe the rest of the world has this much trouble loading arduinos.

Any suggestions?

Doesn’t the IDE give error messages when it fails? If not try verbose mode.

The IDE version is probably important to know.

Yes, The IDE shows the error ‘verification error’ In command mode it shows the writing, followed by reading then OK.

I am musing the IDE V1.6.0.

Copy and paste the entire error from the IDE…

avrdude: Version 6.0.1, compiled on Apr 3 2014 at 23:12:16

Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is “C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf”

Using Port : usb

Using Programmer : usbtiny

avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\.\libusb0-0001–0x1781-0x0c9f

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 : USBtiny

Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/

avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e950f

avrdude: NOTE: “flash” memory has been specified, an erase cycle will be performed

To disable this feature, specify the -D option.

avrdude: erasing chip

avrdude: Using SCK period of 10 usec

avrdude: reading input file “C:\Users\Ron\AppData\Local\Temp\build4142008991102421513.tmp/sketch_aug22a.cpp.hex”

avrdude: writing flash (450 bytes):

Writing | ################################################## | 100% 0.89s

avrdude: 450 bytes of flash written

avrdude: verifying flash memory against C:\Users\Ron\AppData\Local\Temp\build4142008991102421513.tmp/sketch_aug22a.cpp.hex:

avrdude: load data flash data from input file C:\Users\Ron\AppData\Local\Temp\build4142008991102421513.tmp/sketch_aug22a.cpp.hex:

avrdude: input file C:\Users\Ron\AppData\Local\Temp\build4142008991102421513.tmp/sketch_aug22a.cpp.hex contains 450 bytes

avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.78s

avrdude: verifying …

avrdude: verification error, first mismatch at byte 0x0000

0xff != 0x0c

avrdude: verification error; content mismatch

avrdude done. Thank you.

Looks like you need to burn the correct bootloader. Plug in bad Arduinos, select the correct board, correct COM port, click Burn Bootloader.