Skip to content

Commit 094ccdb

Browse files
committed
STM32H747: don't start CM4 if boot bit is not set
1 parent 62e5515 commit 094ccdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/TARGET_STM/mbed_overrides.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ void mbed_sdk_init()
129129
LL_HSEM_1StepLock(HSEM, CFG_HW_STOP_MODE_SEMID);
130130
/*Release HSEM in order to notify the CPU2(CM4)*/
131131
LL_HSEM_ReleaseLock(HSEM, CFG_HW_STOP_MODE_SEMID, 0);
132+
/* wait until CPU2 wakes up from stop mode */
133+
while (LL_RCC_D2CK_IsReady() == 0);
132134
} else {
133-
LL_RCC_ForceCM4Boot();
135+
//LL_RCC_ForceCM4Boot();
134136
}
135-
/* wait until CPU2 wakes up from stop mode */
136-
while (LL_RCC_D2CK_IsReady() == 0);
137137
#endif /* CORE_M4 */
138138
#else /* Single core */
139139
// Update the SystemCoreClock variable.

0 commit comments

Comments
 (0)