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:
parent
4fb265657d
commit
612f29ee27
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue