I've been working on a radio project using an ATmega128 for a little under a year now-for the last six months (off and on, you know how hobby projects go) I have been working on getting a custom board done and working using this microcontroller and the Arduino Megacore. I bought a pair of ATmega128's at a hamfest and have bought a dozen ATmega2561's from Sparkfun when they went on sale at a big discount, they seem to be pin-compatable so I plan to assemble boards from both eventually.
Now, I've had 10 boards made, and have assembled one. (SMD is great, the hotplate method works!) It's time to program the bootloader and I get the following error every time:
Arduino: 1.6.9 (Windows 10), Board: "ATmega128, Disabled, Disabled (default), 16 MHz external"
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\MegaCore-master\avr/avrdude.conf"
Using Port : COM3
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATmega128
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 4 12 64 0 no 4096 8 0 9000 9000 0xff 0xff
flash 33 6 128 0 yes 131072 256 512 4500 4500 0xff 0xff
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 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0xffffff (retrying)
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0xffffff (retrying)
Error while burning bootloader.
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
In addition to the above, as soon as I connect up the +5v supply to the new target board, the "TX" LED lights up very, very dimly on the CP2102 USB converter circuit that's on the target board. The Green "RX" LED doesn't light at all, but the Red "TX" led just barely glows. I am assuming I may need to up-size the 470R series resistor to knock that out, but I also acknowledge the possibility that the CP2102 might be shorted/improperly soldered...I hope not, as it's a QFN24 and appears very difficult to desolder, even though it seemed very easy to solder when I put it together.
Any ideas as to what may be going wrong? Did I end up with a dead/dud/fake ATmega128?