From e29aa6a7fab7b9e12804e1649ded42697e33ca6b Mon Sep 17 00:00:00 2001 From: Michel JAOUEN Date: Fri, 8 Jul 2016 12:04:48 +0200 Subject: [PATCH] Fix issue #2124: IAR no rtos Remove the 2nd call of mbed_sdk_init in __iar_argc_argv --- hal/common/retarget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/hal/common/retarget.cpp b/hal/common/retarget.cpp index 9fbc27b784..71be1d3801 100644 --- a/hal/common/retarget.cpp +++ b/hal/common/retarget.cpp @@ -545,7 +545,6 @@ extern "C" int __wrap_main(void) { // code will call a function to setup argc and argv (__iar_argc_argv) if it is defined. // Since mbed doesn't use argc/argv, we use this function to call our mbed_main. extern "C" void __iar_argc_argv() { - mbed_sdk_init(); mbed_main(); } #endif