Hi
I have been fighting with this problem for about 2 days now. I can upload a sketch I have written to both a Uno and a Nano (using 2 different COM ports due to different connection types) but both the Uno and the Mega are using the SAME port connection physically.
DM shows that it recognises a Mega 2560 on COM16, and allgoes well until it cmes to writing to the chip when I receive the following upload log.
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM16
Using Programmer : wiring
Overriding Baud Rate : 115200
AVR Part : ATmega2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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 : Wiring
Description : Wiring
Programmer Model: AVRISP
Hardware Version: 15
Firmware Version Master : 2.10
Vtarget : 0.0 V
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "C:\Users\olwen\AppData\Local\Temp\arduino_build_469192/Railway_master_point_controller.ino.hex"
avrdude: writing flash (10162 bytes):
Writing | ################################################avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
Eventually it gives up..
This is Windows 10, I have just installed 1.8.5 of the interface
I canot use the uno in this application as 1) I have already built the controlboard that it powers, AND 2) wired it all up behind the facia the Mega should sit behind. In desperation I have disconnected the I2C wires and the 5V/GND takes offs from the board that feeds other stuff - JIC
I even had the driver being a RAMPS (from my 3d printer stuff), but nothing seems to make any differnce.
Interestingly, the L bliks constantly during the upload attempt, and there are intermittent TX/RX flashes.
The other thing I notice after reading everything else on the forum is that the L only blink O~NCE on power up, but my reading suggests it should flash 3 times ?
I tried to burn the bootloader from the interface, but that reports :
System wide configuration file is "C:\Users\olwen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"
Using Port : usb
Using Programmer : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)
avrdude done. Thank you.
Error while burning bootloader.
At the end of my tether really, so any help would really be appreciated.
Ian