ATMega328 issues with "STK500 Compatible USB Programmer

STK500 Compatible USB Programmer

sku: PGM-08702

I am having trouble loading onto a ATMEGA328 from Ubuntu Linux. I am trying to reload the bootloader for the Arduino Diecimila using the provided ISP pins using avrdude.

I can communicate with the ATMEGA 168 that is in the MeggyJr RGB without problems, so I know that avrdude is finding the programmer at /dev/ttyACM0. Here are the commands and responses I receive.

168 works:

avrdude -c stk500v2 -p m168 -P /dev/ttyACM0 -b 9600

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e9406

avrdude: safemode: Fuses OK

avrdude done. Thank you.

328 does not work:

avrdude -c stk500v2 -p m328p -P /dev/ttyACM0 -b 9600

avrdude: stk500v2_command(): unknown status 0x80

avrdude: stk500v2_command(): unknown status 0xc9

avrdude: stk500v2_program_enable(): cannot get connection status

avrdude: initialization failed, rc=-1

Double check connections and try again, or use -F to override

this check.

avrdude done. Thank you.

Any help is greatly appreciated!

Justin

Only recent versions of avrdude know about the 328. You might check the version of avrdude and its associated configuration file, packaged with the latest version of Arduino.

Thanks for the reply. I have since worked through all of the issues and detailed the solution here:

http://wyoinnovation.blogspot.com/2010/ … -woes.html

Justin