I can't seem to get my avrispmkII to program an atmega1284p
I have a PC dev board that I've used with atmega32's that has a 10 pin ISP and a 10 pin JTAG socket on them. I've wired a 6 pin ISP socket to the board to handle the Atmel AVRISP mkII. I've used an Adafruit USBtiny ISP programmer before with the atmega32's but it won't handle devices with more than 64K of flash. I HAVE used the new Atmel avrispmkII with Arduinos having atmega328, and atmega2560 processors so I know that the avrispmkII does work.
What happens when I hook up the avrispmkII to my dev board is that the bicolor led flashes orange which usually means the device is hooked up wrong. It is NOT. On the Arduino I can pull the processor out of the socket and connect the ISP and it indicates green (also indicates green WITH the processor in place). On my dev board it flashes orange with or without the processor in place. I tried wiring up ONLY the power and ground from the Arduino to the ISP and then it DID flash orange.
Finally I tried connecting my JTAGMKII to the dev board and I could issue the avrdude command:
avrdude -cjtagmkII -pm1284p -Pusb and the jtag was able to read the device signature correctly.
I had begun to suspect the 7805 regulator on my dev board, but the power looks good on my TEK465, no sign of noise and the voltage is dead nuts on 5v (the ISP should be fine with cpu power from 1.8-5.5 volts anyway). There might be a ground loop, but I tried both a wall wart 12v brick and a Lamda supply to feed the 7805 with no difference.
I've been using the Arduino IDE to drive AVRdude, it works for the atmega328 and the atmega2560. I think have the correct mods for the atmega1284p, but I can't yet get that far anyway. I will try burning the bootstrap with the jtag from the command line, but so far that doesn't work from the arduino IDE.
I can't figure out why the avrispmkII hw does not sync up with the atmega1284p processor. I've verified that MISO, MOSI, SSCK, RESET, +5 and GND all go to the right pins on the processor.