How to set STM32F417 Programmable voltage detector
I try to capture power off timestamp by using PVD_IRQHandler(), but it doesn't work. The PVD is configured at power up at below:
void Config_PWR_PDV(void)
{
PWR_PVDTypeDef PVDSetting;
HAL_PWR_DisablePVD();
PVDSetting.Mode = PWR_PVD_MODE_IT_FALLING; //Falling edge.
PVDSetting.PVDLevel = PWR_PVDLEVEL_7; //E0; 2.9Volt
HAL_PWR_ConfigPVD(&PVDSetting);
HAL_PWR_EnablePVD();
}
The PVD_IRQ is enabled in the STMCube, it seems not trigger the interrupt when I power off the board.
From the user manual, it mention "EXTI line 16", maybe this cause the problem, but I can't setup for "EXTI 16" in STMCube.