STM32H750IB How set the RDP Level ?
When I set the RDP Level 1 the Controller stops working.
I must unpower the Controller and power it agin, NRST didn't work.
I use the code:
HAL_FLASH_Unlock();
HAL_FLASH_OB_Unlock();
OBIni.OptionType = OPTIONBYTE_RDP;
OBIni.RDPLevel = OB_RDP_LEVEL_1;
if ( HAL_FLASHEx_OBProgram(&OBIni) != HAL_OK )
{
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();
return;
}
HAL_FLASH_OB_Launch();
/* We should not make it past the Launch, so lock
* flash memory and return an error from function
*/
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();
What must I do, that the controller didnt stop after the HAL_FLASH_OB_Launch(); ?
