Preventing the download of code... on purpose
Jim McCorison
Posts: 359
The recent tip I got from the BS Editor says "NEVER CONNECT THE RESET PIN DIRECTLY TO 5 VOLTS; DOING SO WILL PREVENT YOU FROM DOWNLOADING TO THE BASIC STAMP."
Interesting. This seems like a nice method for intentionally preventing the download of new code. Can this pin be safely tied to Vdd without a resistor, or should one be used? Or is there a better way of proving a lock off means of preventing a down load?
Jim
Interesting. This seems like a nice method for intentionally preventing the download of new code. Can this pin be safely tied to Vdd without a resistor, or should one be used? Or is there a better way of proving a lock off means of preventing a down load?
Jim
Comments
I think if you tie reset to Vdd the stamp will not run at all.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Bean.
But if you were to design a product which would allow downloads to update the code via, say a USB port, and you wanted to restrict it to "authorized" uses, how would you go about it? The idea being to allow a user to update the stamp themselves without specialized hardware, but prevent "playing around" which you would then have to support.
OTH, the target customers aren't typically techies, so maybe it isn't really a worry in the first place.
Jim
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
That leads to another question. I was looking at the Generate Object dialog boxs and wondering what the different options were. I couldn't find a help file for the actual Editor, just the syntax for the language. Have I overlooked it somewhere?
Thanks,
Jim
A) Object Code
This creates an image of your program and saves the file as MYPROGRAM.OBJ. A "loader" is required to move the OBJ file into a target BASIC Stamp, and that module MUST match the module specified in the orginal source.
Object Code and Stamp Loader
In addition to the OBJ file, this option creates a small program called STAMPLOADER.EXE. The loader program can be used to open and download an OBJ file to a BASIC Stamp.
C) Single Executable
This option binds the OBJ and loader program into a stand-alone executable file. This is probably the best option for protecting a product from a bad update -- send the EXE file to the client and have them run it.
Note that all options allow for some amount of text customization so that you can provide instructions with the loader. The image below shows what the stand-alone EXE looks like; without any text customization.
Here's the same program WITH customization:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 12/31/2004 6:41:44 PM GMT
I appreciate the support.
And a Happy New Year to all.
Jim
"dec to hex" file, the name of my program, and a StampLoader file.· If I click on the StampLoader file I get a regular Stamp Editor screen, with the letters MZP and it asks me for a Stamp directive.· Nothing else happens.· What am I missing?
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA