2020-12-21 01:50 AM
Hello,
I have got an industrial PCB with a STM8S207RBT6. I'm able to READ programm memory, data memory and option bytes with ST Visual Programmer and STLink V2.
Also I can write data memory and option bytes. But if I try to write program memory I get an error:
"Programming failed. Device is write protected. Check by values."
But in by value I can't find anything about write protection. Only read out protection, which is turned off.
Option bytes are set to:
000102000000000000
Any advice for my problem?
Regards
Chris
Solved! Go to Solution.
2020-12-21 05:08 AM
The datasheet of the STM8S207RBT6, section 8 (Option bytes) gives you some explanation of the option bytes.
Yes, ROP is disabled, but the remaining bytes do not completely match the datasheet, e.g.:
This section of the datasheet also describes how to perform a write to the memory.
Good luck!
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
/Peter
2020-12-21 05:08 AM
The datasheet of the STM8S207RBT6, section 8 (Option bytes) gives you some explanation of the option bytes.
Yes, ROP is disabled, but the remaining bytes do not completely match the datasheet, e.g.:
This section of the datasheet also describes how to perform a write to the memory.
Good luck!
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
/Peter
2020-12-21 07:20 AM
Thanks, you solved my problem!