Skip to content

Commit 612f29e

Browse files
FRASTMgalak
authored andcommitted
soc: arm: stm32g4 disable sleep mode
This patch allows successive reflashing operation on nucleo_g431rb boards Signed-off-by: Francois Ramu <[email protected]>
1 parent 4fb2656 commit 612f29e

File tree

1 file changed

+3
-0
lines changed
  • soc/arm/st_stm32/stm32g4

1 file changed

+3
-0
lines changed

soc/arm/st_stm32/stm32g4/soc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ static int stm32g4_init(struct device *arg)
4141
/* At reset, system core clock is set to 16 MHz from HSI */
4242
SystemCoreClock = 16000000;
4343

44+
/* allow reflashing board */
45+
LL_DBGMCU_EnableDBGSleepMode();
46+
4447
return 0;
4548
}
4649

0 commit comments

Comments
 (0)