diff --git a/soc/arm/st_stm32/stm32g4/soc.c b/soc/arm/st_stm32/stm32g4/soc.c index c4ea84180f4..c22457a0ac6 100644 --- a/soc/arm/st_stm32/stm32g4/soc.c +++ b/soc/arm/st_stm32/stm32g4/soc.c @@ -41,6 +41,9 @@ static int stm32g4_init(struct device *arg) /* At reset, system core clock is set to 16 MHz from HSI */ SystemCoreClock = 16000000; + /* allow reflashing board */ + LL_DBGMCU_EnableDBGSleepMode(); + return 0; }