From a08f18c2ce5b9e6518bf5fd7a989e0862d779975 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 29 Oct 2017 17:58:33 +0100 Subject: [PATCH] boardloader: use PVD level 4 --- embed/boardloader/lowlevel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/embed/boardloader/lowlevel.c b/embed/boardloader/lowlevel.c index 058048f7a6..74b1fb26fc 100644 --- a/embed/boardloader/lowlevel.c +++ b/embed/boardloader/lowlevel.c @@ -65,13 +65,12 @@ void periph_init(void) __HAL_RCC_GPIOD_CLK_ENABLE(); // enable the PVD (programmable voltage detector). - // select the "2.7V" threshold (level 5). the typical electrical - // characteristic values are similar to BOR level 3. + // select the "2.6V" threshold (level 4). // this detector will be active regardless of the // flash option byte BOR setting. __HAL_RCC_PWR_CLK_ENABLE(); PWR_PVDTypeDef pvd_config; - pvd_config.PVDLevel = PWR_PVDLEVEL_5; + pvd_config.PVDLevel = PWR_PVDLEVEL_4; pvd_config.Mode = PWR_PVD_MODE_IT_RISING_FALLING; HAL_PWR_ConfigPVD(&pvd_config); HAL_PWR_EnablePVD();