I'm trying to get ROP enabled by my bootloader.
This function is run first up by main().
I'm finding that it get stuck in a loop, as ROP never seems to become enabled (always reads back as being set at level 0).
Any ideas what im doing wrong here?
//check ROP status
if (OBInit.RDPLevel == OB_RDP_LEVEL_0)
//no read out protection is active, enable it
OBInit.OptionType = OPTIONBYTE_RDP;
OBInit.RDPLevel = OB_RDP_LEVEL_1;
NVIC_SystemReset(); //shouldnt get to here