tuanti1997qn
tuanti1997qn

Reputation: 77

Disable read-out protection stm8s003

I am starting to use stm8s003. I use the stm8s003 board like this:
"https://www.cnx-software.com/wp-content/uploads/2015/01/One_dollar_development_board.jpg".
When I use IAR and download the program to my stm8 this error occurs :

"The Flash Memory Read-out protection option must be disabled for debug. Disabling this option will first erase the whole Flash Memory."

and I can't debug. How do I disable read-out protection?

Upvotes: 0

Views: 3588

Answers (1)

denis krasutski
denis krasutski

Reputation: 637

You can disable Read-out protection by reset option bytes(using ST-Link Utility) but I suppose your code will enable protection again, so you have to ensure that during debug session your code does not enable ReadOut protection. You can use Release/Debug configuration to manage this issue.

Upvotes: 1

Related Questions