Shop OBEX P1 Docs P2 Docs Learn Events
Retreiving Spin Code — Parallax Forums

Retreiving Spin Code

edited 2013-11-17 17:44 in General Discussion
I am new at this Propeller thing, and have been developing an object for some time. The good news is that the object that I have been working on works really well, but the bad news is that I have lost my copy of it. Is there any way of retrieving the spin code that is stored on the eeprom chip?

Comments

  • ReachReach Posts: 107
    edited 2013-11-17 10:04
    There is a way to do this but its not going to spit out spin code. I think at best youll get a binary.
  • Mike GreenMike Green Posts: 23,101
    edited 2013-11-17 11:06
    You can load another program into the Propeller's RAM and run it and this program can copy the contents from the EEPROM to something else, but, as Reach mentioned, it's a very compact binary translation of your Spin program. All the variable names are gone. The method and object names are all gone. Theoretically, it's possible to translate this back into something that looks like Spin, but there's a lot of information missing. In any event, it's not practical.
  • potatoheadpotatohead Posts: 10,261
    edited 2013-11-17 13:13
    Right now is a good time to clear your mind and write down as much of the really important things you did as you can. Then the next version of this program will be awesome!

    We've all done it. Mostly we don't do it again. :)
  • edited 2013-11-17 16:44
    Well I appreciate all of your responses to my inquiry, but it sounds to me like I should write this one off as a rookies mistake. Oh well, lesson well learned.
  • Dave HeinDave Hein Posts: 6,347
    edited 2013-11-17 17:44
    Post your binary file, and I can try running a Spin disassembler on it. I tinkered with the disassembler about a year ago, but I quit working on it and got into something else. It generates generic names like Method1 and LocalVar1, but it might provide enough information for you to rewrite your program.
Sign In or Register to comment.