2005-05-10 08:25 PM
2011-05-17 02:36 AM
I'm trying to secure the code so that it can not be read back out. Usually this simply involves setting a bit and is usually an option on programmers. The ST92F150, however, is more complicated. The ST programmer help index references an option that does not exist, and the data sheet is confusing and complicated. Can anyone please help? :o
2011-05-17 02:36 AM
Quote:
On 12-04-2005 at 05:08, Anonymous wrote: I'm trying to secure the code so that it can not be read back out. Usually this simply involves setting a bit and is usually an option on programmers. The ST92F150, however, is more complicated. The ST programmer help index references an option that does not exist, and the data sheet is confusing and complicated. Can anyone please help? :o The same problem I have. I had success to set the Bit APRO in the register NVAPR via a procedure executed from RAM, following the data sheet of the processor - but now the processor is not only protected against read-out, but also protected against erasure. So, the processor is damaged for me, because I cannot reprogram it. I asked the support in Germany before 10 days, this people forwarded my questions to many peoples in different countries, but I have no answer anymore! regards, Bernhard2011-05-17 02:36 AM
To write or erase the device once it is protected, try the following procedure, this un-protects temporarely the device.
set the PROT bit of FCR register (or FCR, #02h) set the Write Protection bits of NVWPR register (or NVWPR, #3Fh) set the FWMS bit of FCR register (or FCR, #80h) test FBUSY bit of FCR register to check the prog operation end, then write or erase the device.