Just purchased a AVRISP mkII and a couple of ATMEGA168's. I have been using the Arduino Diecimila for a while without any problems. I changed the chip on the Diecimila board and programmed the new 168 with ATmega_BOOT_168_Diecimila.hex. I set the fuse to: Extended = 0xF8 High = 0xDD Low = 0xFF I also set the lock bits to 0xCF.
After programming the chip I am unable to upload a sketch to the Diecimila board. I get the following error:
avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I was able to get around the problem by putting the original chip back in the diecimila, uploaded the Blink sketch, read the flash using AVR Studio, put the new chip back in the diecimila, programmed the chip with the same fuse and lockbit settings from above, but used the hex file I read from the original chip. Now I am able to upload new sketches without any problems.
Is there a problem with the boot loader hex file or am I missing something?
P.S. OS = winxp Arduino - 0015