Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
November 30, 2009 - 12:08pm
|
Programmer is programming device, driver (as shown in K2 picture), evaluation version works correctly. The only module that doesn't work properly is the one responsible for option bytes for ST72F344S4T6 (as shown in K1 picture). Byte "0" should be 0xB2, but instead, is 0xB0. As a consequence, microcontroller is not protected from reading progam code. What could be the problem? Is there any solution? I am using: STX-RLink Pictures: K1: K2: |
Hi,
This looks like a typo in our configuration file.
Please follow this procedure and tell me if it solves your problem:
1. Close all instances of Ride and RFlasher.
2. Make a backup copy of the file "\bin\ST72ICC_ProductInfo.txt" and then edit in any text editor.
3. Search the content of file for the string "[234]". (should be line 821)
4. Search the content of file for the string "MaskOptBytes_Byte0=0x03" that follows the previous string. (should be line 864)
5. Replace the string found in 4. by this one: "MaskOptBytes_Byte0=0x01".
6. Save the file, open Ride or RFlasher, see if you can program the protection bit.
Please let us know if it solves the problem. I'm waiting for your confirmation to commit the change for the next release of the STM8-ST7 kit.
Best Regards,
Vincent
Indeed, it solved mentioned problem. Thank you.