AnsweredAssumed Answered

STM32F10x read-out protection from code

Question asked by Gregorsanec.Toni on Mar 16, 2017
Latest reply on Mar 21, 2017 by Danish Ali

I would like to implement read-out protection on STM32F103 high-density device. As far I can see there is an

option register FLASH_OBR with RDP bit for read-out enable/disable protection.

Beside the main application, I also implemented bootloader, which can reprogram main application from external

flash. So this bootloader should be able to SET and CLEAR RDP bit without a need for mass flash erase! 

Is this possible? I implemented WRITE protection, which works OK, but I can't get read-out protection!  

I managed to enable read-out protection using an external tool, but it is not functional if I run it from code.