Question
PVD IT always rising
I'm working on a STM32L072, and I tried to configure the PVD to rising an IT when the supply voltage is below 2.7V.
It appears that the IT is always rise even the voltage is always above 3V.
__HAL_RCC_PWR_CLK_ENABLE();
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
/* Enable the Ultra Low Power mode */
SET_BIT(PWR->CR, PWR_CR_ULP);
/* Enable the fast wake up */
SET_BIT(PWR->CR, PWR_CR_FWU);
PWR_PVDTypeDef pvdConf;
pvdConf.PVDLevel = PWR_PVDLEVEL_4; /* level: 2.7V */
pvdConf.Mode = PWR_PVD_MODE_IT_RISING;
HAL_PWR_ConfigPVD(&pvdConf);
HAL_PWR_EnablePVD();I tried with and without the ULP and FWU. If I set the PVDLevel to PWR_PVDLEVEL_0, the IT are not rise anymore.
What is missing ?
