Skip to content

Commit 3884e09

Browse files
jeromecoutantCruz Monrreal II
authored andcommitted
STM32F2 assert in SetSysClock replaced
1 parent 0feb290 commit 3884e09

File tree

1 file changed

+3
-3
lines changed
  • targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device

1 file changed

+3
-3
lines changed

targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
**/
3131

3232
#include "stm32f2xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -120,8 +120,8 @@ void SetSysClock(void)
120120
if (SetSysClock_PLL_HSI() == 0)
121121
#endif
122122
{
123-
while(1) {
124-
MBED_ASSERT(1);
123+
{
124+
error("SetSysClock failed\n");
125125
}
126126
}
127127
}

0 commit comments

Comments
 (0)