Backup arduino leonardo sketch

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
Kaikai
Posts: 13
Joined: Mon Feb 27, 2017 2:21 am
Has thanked: 1 time
Been thanked: 1 time

Backup arduino leonardo sketch

Post by Kaikai » 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.

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: Backup arduino leonardo sketch

Post by HoolyHoo » Tue May 02, 2017 12:57 pm

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?

Kaikai
Posts: 13
Joined: Mon Feb 27, 2017 2:21 am
Has thanked: 1 time
Been thanked: 1 time

Re: Backup arduino leonardo sketch

Post by Kaikai » 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 :)

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: Backup arduino leonardo sketch

Post by HoolyHoo » 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.

jermzz
Posts: 253
Joined: Sat Jun 18, 2016 7:40 pm
Has thanked: 43 times
Been thanked: 89 times

Re: Backup arduino leonardo sketch

Post by jermzz » Tue May 09, 2017 7:04 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest