5

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?

1
  • 2
    You'll have to use the commandline for that. Inside the arduino program folder there is another executable called avrdude. You need to call something like avrdude -pattiny45 -cstk500v1 -Uflash:r:filename.hex:i
    – Gerben
    Oct 9, 2014 at 16:27

1 Answer 1

5

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).

1
  • Sorry, totally missed your mention of that. Oct 9, 2014 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.