diff --git a/rtos/TARGET_CORTEX/mbed_boot.c b/rtos/TARGET_CORTEX/mbed_boot.c index 266dce37cd..c2d1042278 100644 --- a/rtos/TARGET_CORTEX/mbed_boot.c +++ b/rtos/TARGET_CORTEX/mbed_boot.c @@ -576,9 +576,14 @@ void pre_main(void) singleton_mutex_attr.cb_mem = &singleton_mutex_obj; singleton_mutex_id = osMutexNew(&singleton_mutex_attr); +#if (__IAR_SYSTEMS_ICC__ >= 8) + __iar_Initlocks(); +#endif + if (low_level_init_needed) { __iar_dynamic_initialization(); } + mbed_main(); main(); }