Skip to content

Commit 1eb16d1

Browse files
committed
STM32 : gpio_reset_at_init disabled with MBED_DEBUG
1 parent 8984399 commit 1eb16d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_STM/mbed_overrides.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ MBED_WEAK void TargetBSP_Init(void) {
9494
/** Do nothing */
9595
}
9696

97+
#ifndef MBED_DEBUG
9798
#if MBED_CONF_TARGET_GPIO_RESET_AT_INIT
9899
void GPIO_Full_Init(void) {
99100
GPIO_InitTypeDef GPIO_InitStruct;
@@ -162,6 +163,7 @@ void GPIO_Full_Init(void) {
162163
#endif
163164
}
164165
#endif
166+
#endif
165167

166168
// This function is called after RAM initialization and before main.
167169
void mbed_sdk_init()
@@ -313,9 +315,11 @@ void mbed_sdk_init()
313315
#endif /* ! MBED_CONF_TARGET_LSE_AVAILABLE */
314316
#endif /* DEVICE_RTC */
315317

318+
#ifndef MBED_DEBUG
316319
#if MBED_CONF_TARGET_GPIO_RESET_AT_INIT
317320
/* Reset all GPIO */
318321
GPIO_Full_Init();
322+
#endif
319323
#endif
320324

321325
/* BSP initialization hook (external RAM, etc) */

0 commit comments

Comments
 (0)