I’m trying to burn the bootloader using the Atmel168 makefile supplied with Arduino0009.
The first command goes fine:
./avrdude -c dapa -p m168 -P /dev/parport0 -e -F -u -U lock:w:0x3f:m -U efuse:w:0x00:m -U hfuse:w:0xdf:m -U lfuse:w:0xc7:m (i have also tried hfuse 0xdd and lfuse 0xff, although to be honest, I don’t know these flags are.)
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9406 ← device signature looks okay here
avrdude: erasing chip
avrdude: reading input file “0x3f”
… etc …
(I am using a parallel programmer)
Then the second command, I assume to burn the image, fails:
./avrdude -c dapa -p m168 -P /dev/parport0 -U flash:w:ATmegaBOOT_168_ng.hex -U lock:w:0x0f:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x000102
avrdude: Expected signature for ATMEGA168 is 1E 94 06
Double check chip, or use -F to override this check.
avrdude done. Thank you.
make: *** [isp] Error 1
I’ve spent a good deal of time tinkering, testing, browsing google/arduino.cc, trying uisp, etc. No luck so far Although, it’s interesting to note that I did get one of my ATmega168s to burn using uisp last night, though when I reproduce the steps, I can’t get my last two to burn. The Arduino IDE just says the programmer is not responding, and no activity is happening on pin 13. However, uisp says “AVR Direct Parallel Access succeeded after 0 retries” in a couple places, too. And, as you see, avrdude is only half-happy. Boggle!