Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

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?

share|improve this question
    
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 14 hours ago

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

share|improve this answer
    
Thanks! I'll try it later! –  Alfonso Jiménez 20 hours ago
    
Sorry, totally missed your mention of that. –  Chris Stratton 15 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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