Pulling code off a BS2
th3jester
Posts: 81
I was working on a project a long time ago and have started it up again. Although I lost the source code on my pc. I understand not being able to pull code off a BS2 is a safety feature, yet I know there is a way to do it. Will anyone please share this with me and if you don't want it to be public then email me @ th3jester@gmail.com.
Thank you,
th3jester
Thank you,
th3jester
Comments
1) You could download a very short program to the BS2 that would dump the rest of memory, but it would overlay part of what you want to get and there's no way to get around that.
2) You could desolder the EEPROM from the Stamp module, then it's trivial to read it totally. You may or may not be able to get the Stamp to work again.
3) You might be able to connect very fine wires to the SDA and SCL pins of the EEPROM and hold the Stamp's processor in reset so it won't try to read the EEPROM, then have some external circuitry read the EEPROM.
th3jester
What I'm trying to say is that technically you could recover part of the program stored in the EEPROM, but it's not in a useful form and you'll never get your original source program back.
The other main reason is that it would make it easier for people to steal the programs from existing products that use a Stamp. Parallax hasn't put in features that would make this deliberately difficult, but they are unlikely to spend resources and possibly lose functionality (speed or program size) to make it easy.
I think you're missing the point. There is no source code conveyed to the Stamp. Once the IDE loads the program into the Stamp, the Stamp has no need for source code. The IDE still has the source code, but not the Stamp. That's the point when you should back-up your program using "Save As". The Stamp only contains "byte codes".
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When all else fails, try inserting a new battery.