Page 1 of 1

How to retrieve current code from the controller?

Posted: Thu Jan 23, 2014 7:13 pm
by lmolenmaker
Hi guys,

After a system restore of my laptop I lost most files with the codes.

So at the moment I have no idea which code has been uploaded to the main unit.

Is there a way to retrieve the current code stored on my unit, so I can save that to my computer?

Hope somebody can help me out here, otherwise I need to start from scratch again.

Lesson learned here that I should have a external backup.

Thanks in advance.

Leslie

Re: How to retrieve current code from the controller?

Posted: Thu Jan 23, 2014 7:24 pm
by KRavEN
It doesn't work like that. What gets uploaded to the unit is a compiled binary so you wouldn't be able to get it back to the arduino c++ code you're wanting.

Re: How to retrieve current code from the controller?

Posted: Thu Jan 23, 2014 7:33 pm
by lmolenmaker
Thanks for the reply.

I guess to start all over again. Maybe a good thing.

Clean it up a bit.

Leslie

Re: How to retrieve current code from the controller?

Posted: Wed Apr 02, 2014 8:02 pm
by 00Warpig00
Something I have done...

In each revision of my code I increase a revision number and uploading my code to the RA sets a memory location in the RA+ to that value. It does not help me recover code from the RA but I can read the memory location any time I want and go through my sketches that are named by revision number and have that revision # hard coded into the sketch to at least identify which code I am actually running.

Nick

Re: How to retrieve current code from the controller?

Posted: Thu Apr 03, 2014 11:52 am
by binder
depending on how code saavy you are, you could source control (git) and use it to handle your changes. when you make a change and upload code you are happy with, you can create a tag to keep track of it. then you could publish/store your code on github.com so you have a free, offsite backup.

just a thought....


Sent from my iPad mini