2017-03-16 04:15 AM
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.
#stm32f1032017-03-21 03:10 AM
Why would you need to disable readout protection from within your bootloader?
The bootloader should be able to read protected FLASH whether or not you have readout protection.
Readout protection only prevents external debuggers and the like from reading your FLASH. (Even if, for example, the external debugger downloads some code to run from RAM).
Hope this helps,
Danish