Page 1 of 1

Backup arduino leonardo sketch

Posted: Tue May 02, 2017 12:37 pm
by Kaikai
So i have a working setup, except for 1 button. I probably didnt solder on the right pin as i followed a guide. Now i would like to redeo the code, but i wanna backup what i have on it. Is that possible? Another reason is that i made it a keyboard, i wish i made it a gamepad instead.

Re: Backup arduino leonardo sketch

Posted: Tue May 02, 2017 12:57 pm
by HoolyHoo
Kaikai wrote:
Tue May 02, 2017 12:37 pm
So i have a working setup, except for 1 button. I probably didnt solder on the right pin as i followed a guide. Now i would like to redeo the code, but i wanna backup what i have on it. Is that possible? Another reason is that i made it a keyboard, i wish i made it a gamepad instead.
If you made it don't you have the source file?

Re: Backup arduino leonardo sketch

Posted: Tue May 09, 2017 1:54 pm
by Kaikai
I had it in Notepad++ but i didnt save the file (assumed it would stay in there as normal, but then it didnt). If i cant grab the file of my device i'll find and mod a new sketch :)

Re: Backup arduino leonardo sketch

Posted: Tue May 09, 2017 2:23 pm
by HoolyHoo
Kaikai wrote:
Tue May 09, 2017 1:54 pm
I had it in Notepad++ but i didnt save the file (assumed it would stay in there as normal, but then it didnt). If i cant grab the file of my device i'll find and mod a new sketch :)
Ahh, I see. I believe you can pull a copy of the hex with avrdude if I'm not mistaken. You'll have to google to find out how to do that. As far as the source, well if you don't have it then it's pretty much gone.

Re: Backup arduino leonardo sketch

Posted: Tue May 09, 2017 7:04 pm
by jermzz
HoolyHoo wrote:
Tue May 09, 2017 2:23 pm
Kaikai wrote:
Tue May 09, 2017 1:54 pm
I had it in Notepad++ but i didnt save the file (assumed it would stay in there as normal, but then it didnt). If i cant grab the file of my device i'll find and mod a new sketch :)
Ahh, I see. I believe you can pull a copy of the hex with avrdude if I'm not mistaken. You'll have to google to find out how to do that. As far as the source, well if you don't have it then it's pretty much gone.
This. I've done it. You can pull the program off the teensey / aurduino. You can not edit it, because its compiled, but you can reload it onto the same / different controller board as it sits. There is no other way to pull the program off the controller board as it's compiled and unreadable.