Skip to main content
andrew239955_stm1_stmicro
Associate II
November 25, 2016
Question

STM32F030 Read protect

  • November 25, 2016
  • 2 replies
  • 750 views
Posted on November 25, 2016 at 10:13

Hi Support,

I posted previously on this, started a new thread as reply wouldn't work!

I am unable to get the read protect to work properly all the time, sometimes i can get it to work and sometimes it doesn't. I am following the manual and code examples but still having no success.

I unlock the flash, i unlock the option flash using the same key. I set the appropiate enable bits, then i write 'OB->RDP = 0x6699', then i reset the appropiate bits and lock the flash.

All i want to do is set the read protect once on cold start in the code rather than using read protect function in the ST bootloader application.

Do you have some example code for me to use.

Thanks in Advance

    This topic has been closed for replies.

    2 replies

    waclawek.jan
    Super User
    November 25, 2016
    Posted on November 25, 2016 at 14:00

    > Do you have some example code for me to use.

    [stm32snippetsf0]\STM32F0xx_Snippets_Package_V1.2.0\\Projects\OPTION_BYTES\01_OptionBytesEraseProg\ ?

    JW

    andrew239955_stm1_stmicro
    Associate II
    November 25, 2016
    Posted on November 25, 2016 at 15:10

    Thanks