2015-03-19 05:38 AM
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. Thanks2015-03-19 07:44 AM
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.
2015-03-19 10:59 AM
It works now, thanks a lot.
2015-03-19 11:05 AM
Are you driving the NRESET line?
2015-03-23 11:31 AM
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 lot2015-03-24 09:43 AM
I don't think so, and other code in FLASH/ROM can read itself.