Topic : Debugging while ROP is enabled

Forum : ST7/STM8

Original Post
Post Information Post
September 30, 2011 - 5:09pm
Guest

Hi,

I am using STM8S207 processor. While I am debugging my project using Ride7 and RLink Debugger, I enable readout protection by writing 0xAA to ROP option byte somewhere in the code and debugging continues normally.
Is it normal? After enabling ROP, I expect debugging to fail.

My second question is, is it possible to enable readout protection while loading code from PC using RFlasher7 by configuring some settings?

Thanks.

Replies
Post Information Post
+1
0
-1
September 30, 2011 - 6:08pm
Raisonance Support Team

Hi,

On the first point, probably the ROP becomse active at the following reset. Maybe you can force it active by triggering a reloading of the option bytes.

On the second point, you can do that by simply giving some values to the Option Bytes in your project.
See the STM8 examples provided with Ride for how to do this using an assembler file, which is the simplest way to do it.

Best Regards,

Vincent