aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32g4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/stm32g4.c')
-rw-r--r--src/stm32/stm32g4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/stm32g4.c b/src/stm32/stm32g4.c
index d75bcbe1..bd4c6ee0 100644
--- a/src/stm32/stm32g4.c
+++ b/src/stm32/stm32g4.c
@@ -130,7 +130,7 @@ clock_setup(void)
((CONFIG_CLOCK_FREQ>30000000) ? FLASH_ACR_LATENCY_1WS :
FLASH_ACR_LATENCY_0WS)))));
FLASH->ACR = (latency | FLASH_ACR_ICEN | FLASH_ACR_DCEN
- | FLASH_ACR_PRFTEN);
+ | FLASH_ACR_PRFTEN | FLASH_ACR_DBG_SWEN);
enable_pclock(PWR_BASE);
PWR->CR3 |= PWR_CR3_APC; // allow gpio pullup/down