AnsweredAssumed Answered

STM32L100RCT6 : Problem with read out protection

Question asked by pare.martin on Jun 3, 2014
Latest reply on Jan 18, 2015 by Abu_El_Magd.Ali
Hi all,

I am using evaluation board STM32L100C-DISCO.  I have a problem with read-out protection.  I am using this code :
[code]
    /* Unlock the Flash Program Erase controller */
    FLASH_Unlock();


    FLASH_OB_Unlock();

    /* Clear all FLASH flags */
    FLASH_ClearFlag(FLASH_FLAG_EOP | FLASH_FLAG_WRPERR | FLASH_FLAG_PGERR | FLASH_FLAG_BSY);

    /*  => to set the desired read Protection Level */
    FLASH_OB_RDPConfig(OB_RDP_Level_1);


    /* launch the Option Bytes programming process.*/
    FLASH_OB_Launch();

    FLASH_OB_Lock();
[/code]
When it reaches FLASH_OB_Launch(); it freezes. I am using IAR 7.10. I have used the same code for STM32F0 and STM32F2 and it was working fine. Is there something different to do for this processor?

Thank you!

Outcomes