This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RDP reprogramming not working

Hi all,

I'm currently working on stm32f4xx controller, i need to protect the flash memory, so i used RDP as stated below, its worked and flash memory was not readable, but after that i was not able to re-program the flash using ULINK Pro or Ulink Me, can you please suggest best way to overcome this.

//HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock(); FLASH_RDP.RDPLevel = OB_RDP_LEVEL_1; FLASH_RDP.OptionType = OPTIONBYTE_RDP; HAL_FLASHEx_OBProgram(&FLASH_RDP); HAL_FLASH_OB_Launch(); HAL_FLASH_OB_Lock(); HAL_FLASH_Lock();

Thanks.

Parents Reply Children
  • You could play with the connectivity options and Flash->Erase to do a mass erase.

    You might need to use ST-LINK + Utilities, or J-LINK with external JlinkSTM32.EXE to unlock STM32 parts. The DFU or Flash Demonstrator might be effective.

    I'd have complementary code so I could Nuke the part from orbit...

    It is critically important that you are sharper than the people who might hack your device