Topic : ST7FLITE09 no write protect on RFLASH7

Forum : ST7/STM8

Original Post
Post Information Post
May 12, 2010 - 2:46pm
Guest

Hi,

I bougth a Rlink to mass production and programm ST7FLITE09, the programmer works well, I have tested it with some programs, but when I try to program the Option Byte- write protection ON, the Rlink (or Rflash7) does not program it, the correct values for OP1 and OP2 are (FF and 21).
What is the problem?
Thanks a lot, and sorry if my english is worse.

Replies
Post Information Post
+1
0
-1
May 12, 2010 - 3:03pm
Raisonance Support Team

Hi,

After some customers accidentally activated the protection, and they had to buy new devices, ST and Raisonance decided that by default this feature would be disabled.

Below is the purposefully complex procedure to enable it again. Use it at your own risk, and keep in mind that this protection cannot be removed, even if you send the chip to ST or Raisonance. After the FMP_W bit is set, the flash and option bytes can _never_ be programmed or erased again.

Make a robust validation of the process on a few devices before starting mass production in these conditions.

Best Regards,

Vincent

Here is the procedure to enable writing of this bit:

1. Make a backup copy of this file:
\bin\ST72ICC_ProductInfo.txt

2. Edit the file above in a text editor, search for "[LITE0]"

3. in the "[LITE0]" section, you will see some parameters containing the default option bytes and a mask:
DefOptBytes_Byte0=0xF0
DefOptBytes_Byte1=0xEF
MaskOptBytes_Byte0=0xF1
MaskOptBytes_Byte1=0x20

The "DefOptBytes" parameters describe, for this device, the value written in the option bytes when you "Erase" them.
The "MaskOptBytes" parameters describe which bits must always remain as in the default value. (reserved or dangerous bits)
To enable the setting of the write protection on the Lite0x devices, you must change the mask to this value:

MaskOptBytes_Byte0=0xF0

4. Restart the software and now you should be able to set the write protection.

5. After you have finished the batch, restore the original productinfo file, to avoid accidentaly setting the protection while developing in the future.

+1
0
-1
May 12, 2010 - 3:07pm
Guest

Thanks a lot for your fast reply. I'll in contact if I have problems with it.