Skip to main content
Linda
Associate III
March 19, 2015
Question

Can not make RDP work in STM32F429i_Disco

  • March 19, 2015
  • 5 replies
  • 795 views
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
    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    March 19, 2015
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Linda
    LindaAuthor
    Associate III
    March 19, 2015
    Posted on March 19, 2015 at 18:59

    It works now, thanks a lot.

    Tesla DeLorean
    Guru
    March 19, 2015
    Posted on March 19, 2015 at 19:05

    Are you driving the NRESET line?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Linda
    LindaAuthor
    Associate III
    March 23, 2015
    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

    Tesla DeLorean
    Guru
    March 24, 2015
    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 VenmoUp vote any posts that you find helpful, it shows what's working..