cancel
Showing results for 
Search instead for 
Did you mean: 

Can not make RDP work in STM32F429i_Disco

Linda
Associate II
Posted on March 19, 2015 at 13:38

I can not make RDP work in STM32F429i_Disco

My code is:

~~~~~~~~~~~~~~~~~

            FLASH_OB_Unlock();

            FLASH_OB_WRPConfig(FLASH_WRP_SECTORS, DISABLE);

            FLASH_OB_WRP1Config(FLASH_WRP_SECTORS, DISABLE);

            if (FLASH_OB_Launch() != FLASH_COMPLETE)

            {

            while (1)

            {

            }

            }

            FLASH_OB_RDPConfig(OB_RDP_Level_1 );

            if (FLASH_OB_Launch() != FLASH_COMPLETE)

            {

            while (1)

            {

            }

            }

            

            FLASH_OB_WRPConfig(FLASH_WRP_SECTORS, ENABLE);

            FLASH_OB_WRP1Config(FLASH_WRP_SECTORS, ENABLE);

            

            if (FLASH_OB_Launch() != FLASH_COMPLETE)

            {

            while (1)

            {

            }

            }

            

            FLASH_OB_Lock();

~~~~~~~~~~~~~~~

Please have a look.

Thanks
5 REPLIES 5
Posted on March 19, 2015 at 15:44

Focus on the RDP, and not the WRP then. Doesn't FLASH_OB_Launch() reset the processor? Make all your OB related changes, then do the Launch.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Linda
Associate II
Posted on March 19, 2015 at 18:59

It works now, thanks a lot.

Posted on March 19, 2015 at 19:05

Are you driving the NRESET line?

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Linda
Associate II
Posted on March 23, 2015 at 19:31

Dear Sir,

Is possible to set protection level by sectors?

For example, I want to set sector 19 as level 2 RDP, the rest as level 1 RDP by code?

Thanks a lot

Posted on March 24, 2015 at 17:43

I don't think so, and other code in FLASH/ROM can read itself.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..