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?
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.