So I'm about to make a small production run of a kit project, and I find myself wondering what the best way to go about duplicating the chips will be. So far it has been fairly straightforward if tedious - burn optiboot on to the chip, then use optiboot to load the compiled hex through the Arduino interface through a FTDI cable. It works, but it's no good for shipping a bunch of copies around to friends and family. I have a USBasp available, so I'm suspecting that if I do something like this with the master chip:
avrdude -c usbasp -p m328 -U hfuse:r:hfuse.hex:i avrdude -c usbasp -p m328 -U lfuse:r:lfuse.hex:i avrdude -c usbasp -p m328 -U efuse:r:efuse.hex:i avrdude -c usbasp -p m328 -U flash:r:flash.hex:i
I'll get 4 files that contain the contents of the master. Once I have those files, can I just drop them on a fresh chip with something like:
avrdude -c usbasp -p m328 -U hfuse:w:hfuse.hex avrdude -c usbasp -p m328 -U lfuse:w:lfuse.hex avrdude -c usbasp -p m328 -U efuse:w:Efuse.hex avrdude -c usbasp -p m328 -U flash:w:flash.hex
Or am I missing something simpler? Or is it more complex than that? I'm just starting to step out of the Arduino toolchain, so any assistance would be greatly appreciated!