Skip to content

Commit 5a578a8

Browse files
committed
STM32H7: DualCore: allow no forced CM4 boot
1 parent 63b33b8 commit 5a578a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/mbed_overrides.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ void mbed_sdk_init()
252252
SetSysClock();
253253
SystemCoreClockUpdate();
254254

255+
#ifndef CM4_BOOT_BY_APPLICATION
255256
/* Check wether CM4 boot in parallel with CM7. If CM4 was gated but CM7 trigger the CM4 boot. No need to wait for synchronization.
256257
otherwise CM7 should wakeup CM4 when system clocks initialization is done. */
257258
if (READ_BIT(SYSCFG->UR1, SYSCFG_UR1_BCM4)) {
@@ -263,6 +264,7 @@ void mbed_sdk_init()
263264
}
264265
/* wait until CPU2 wakes up from stop mode */
265266
while (LL_RCC_D2CK_IsReady() == 0);
267+
#endif /* CM4_BOOT_BY_APPLICATION */
266268
#endif /* CORE_M4 */
267269

268270
#else /* Single core */

0 commit comments

Comments
 (0)