soc: arm: stm32g4 disable sleep mode

This patch allows successive reflashing operation
on nucleo_g431rb boards

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2020-02-05 11:48:24 +01:00 committed by Kumar Gala
commit 612f29ee27

View file

@ -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;
}