As it is possible to program a ATtiny45 using Arduino as ISP Programmer, is there a way to backup an ATtiny45 program to a .hex file using Arduino?
asked Oct 9, 2014 at 7:39
1 Answer 1
Assuming the lock bits on the device haven't been set, sure. Simply prepare the Arduino for ArduinoISP, hook up the ATtiny45, and perform a read using AVRDUDE instead of a write (-U flash:r:foo.hex:i
).
answered Oct 9, 2014 at 7:56
-
Sorry, totally missed your mention of that.Chris Stratton– Chris Stratton2014年10月09日 15:31:51 +00:00Commented Oct 9, 2014 at 15:31
avrdude
. You need to call something likeavrdude -pattiny45 -cstk500v1 -Uflash:r:filename.hex:i