My computer just quit, never happened before ( I know you heard this before). I had just downloaded the sketch to a JeeNode, I had not saved it yet before downloading. Is there a way to retrieve the sketch into the Arduino IDE?
Retrieving sketch from JeeNode
(6 posts) (3 voices)-
Posted 25/04/2010 19:20:38
-
Can't be done. By the time a sketch has been sent to a JeeNode (any microcontroller), it has been "compiled" into a set of very low-level machine instructions. The text you see when editing your sketch in the IDE never gets to the microcontroller.
Posted 25/04/2010 22:29:53 -
I slightly disagree on this point. It can be done with a decompiler like IdaPro. http://www.hex-rays.com/idapro/gallery/avr.htm which now supports Atmel Avr instruction set, but yes you will not get the original source code but you can patch it if you want. You just need to get used to it, I did for 10 years but on other architectures!
Posted 26/04/2010 09:39:34 -
I had a hunch someone might disagree ;)
You're right, of course. If a chip can perform a task, then a human can decode those same instructions (with the help of tools) and deduce the original logic. But having assembly language is not quite the same as having a C/C++ "sketch" - that'll be even more work. I also think that's probably not what @hve was looking for...
Posted 26/04/2010 13:39:47 -
Ah yes indeed. But maybe after this conversation he will start to learn reversing. Who knows!
Posted 27/04/2010 05:26:08 -
I think I will save my work more often. Seems a lot easier.
Posted 27/04/2010 12:31:36
