I'm using a Arduino compiled hex file, avrdude and USBtinyISP to program an ATMEGA328P chip.
Just doing the basic hex load using the command below works:
Code: Select all
avrdude -c usbtiny -p m328p -b 57600 -U flash:w:sevenseg.cpp.hex:i
My next step was to clear CKDIV8 fuse and this also works:
Code: Select all
avrdude -c usbtiny -p m328p -b 57600 -U flash:w:sevenseg.cpp.hex:i -U lfuse:w:0xe2:m
My next step was to add an external crystal (and supporting capacitors) to the circuit and set the appropriate fuses:
Code: Select all
avrdude -c usbtiny -p m328p -b 57600 -U flash:w:sevenseg.cpp.hex:i -U lfuse:w:0xff:m
Code: Select all
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
Any ideas or suggestions to what I can try? Thanks for your help.