Question
STM32F303RE: VDDA_MONITOR config
Posted on July 22, 2015 at 18:20
I need to disable the VVDA monitor at power down reset (PDR).
To do this, it needs to write in the option bytes register. I did the following code.
//Disable VDDA MONITOR in option bit
uint8_t UserByte = FLASH_OB_GetUser(); //Rea the user option bytes
//Check VVDA is not yet cleared
if ( (UserByte & OB_VDDA_ANALOG_ON) != 0 )
{
FLASH_Status status = FLASH_OB_VDDAConfig(OB_VDDA_ANALOG_OFF);
if ( status == FLASH_COMPLETE )
{
FLASH_OB_Launch(); //Write to OB register and reset --> issue always doing the reset
}
}
The issue is that the bit VDDA of FLASH->OBR register is never cleared so it seems that the VVDA can not be cleared for unknown reason.
Any idea to solve the issue?