With both the Arduino Leonardo and the Arduino YUN I can successfully upload and run a sketch if I press the Reset button after initiating the upload. If I don't press the Reset button the IDE says "Couldn't find a Board on the selected port".
With a MEGA the IDE says :Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Verbose output when uploading
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude
-CC:\Program Files
(x86)\Arduino\hardware\tools\avr/etc/avrdude.conf
-v -patmega328p -carduino -PCOM3 -b115200 -D
-Uflash:w:C:\Users\Howard\AppData\Local\Temp
\build2820958707507617326.tmp/sketch_aug24a.cpp.hex:i
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
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 : COM3
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
avrdude: reading input file "C:\Users\Howard\AppData\Local\Temp
\build2820958707507617326.tmp/sketch_aug24a.cpp.hex"
avrdude: writing flash (450 bytes):
Writing | ################################################## | 100% 0.08s
avrdude: 450 bytes of flash written
avrdude: verifying flash memory against
C:\Users\Howard\AppData\Local\Temp\build2820958707507617326.tmp/sketch_aug24a.cpp.hex:
avrdude: load data flash data from input file
C:\Users\Howard\AppData\Local\Temp\build2820958707507617326.tmp/sketch_aug24a.cpp.hex:
avrdude: input file C:\Users\Howard\AppData\Local\Temp
\build2820958707507617326.tmp/sketch_aug24a.cpp.hex contains 450 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.07s
avrdude: verifying ...
avrdude: 450 bytes of flash verified
avrdude done. Thank you.
But when using the Verbose output format the IDE says "Done Uploading" , The Verbose message was printed in Red and the there is no blinking LED.
Yes I am using 1.6.5 and the Blink sketch.
hrh1919