I've been out of the AVR/embedded loop for a little while, so bear with me as I re-learn some of the basics...
I'm trying to program an ATMega328P (on an Arduino board but through the ISP port) via an AVRISP mark 2 programmer. I'm connecting from Eclipse.
I've installed the AVR plugin for Eclipse and WinAVR.
When I try to connect, I get an error "Could not understand the output from AVRdude".
I directed the output to the console:
Launching /usr/bin/avrdude -cavrispmkII -pm16 Output: avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f (probably m328p) avrdude: Expected signature for ATmega16 is 1E 94 03 Double check chip, or use -F to override this check. avrdude done. Thank you. avrdude finished Launching /usr/bin/avrdude -cavrispmkII -px128a3 Output: avrdude: stk500v2_command(): error in CMD_XPROG_SETMODE: Unknown avrdude: stk600_xprog_program_enable(): CMD_XPROG_SETMODE(XPRG_MODE_PDI) failed avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. avrdude: stk500v2_command(): error in CMD_XPROG: Unknown avrdude: stk600_xprog_program_disable(): XPRG_CMD_LEAVE_PROGMODE failed avrdude done. Thank you. avrdude finished
One possibility is that I need to update firmware for the programmer, but hoping that's not the case.
Thoughts?