I Have added
FLASH_Unlock(); FLASH_ReadOutProtection(ENABLE); FLASH_Lock();
to my code and unfortunately it has locked my micro-controller. I use Manage Enviroment run time window to add "Flash" library to my project and I can't access to stm32 opt files individually to erease protection bits. Please Help me
Thank youuuuuu. Is there any way to erase RDP bit with keil(Jlink and St-link)?
You could try and add the Options Bytes as an additional Flash Algorithm, and then use the Flash->Erase menu.
Better not to lock down the part in the first place, or code an exit strategy to mass erase the part.
The J-Link has a stand-alone STM32 tools also.