From bf95f43a24b7f355d27f2d37a5cefe842fe20bee Mon Sep 17 00:00:00 2001 From: RFulchiero Date: Fri, 8 Mar 2019 15:33:04 -0600 Subject: [PATCH] Fix single-threaded apps for IAR v8 builds For single-threaded apps __iar_Initlocks() is not required and must not be called because the proper IAR library is brought in only if "--threaded_lib" is defined in the linker command. --- rtos/TARGET_CORTEX/TOOLCHAIN_IAR/mbed_boot_iar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtos/TARGET_CORTEX/TOOLCHAIN_IAR/mbed_boot_iar.c b/rtos/TARGET_CORTEX/TOOLCHAIN_IAR/mbed_boot_iar.c index 0812be93f0..8659355fa3 100644 --- a/rtos/TARGET_CORTEX/TOOLCHAIN_IAR/mbed_boot_iar.c +++ b/rtos/TARGET_CORTEX/TOOLCHAIN_IAR/mbed_boot_iar.c @@ -87,7 +87,7 @@ void __iar_program_start(void) void mbed_toolchain_init(void) { -#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000) +#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000) && !defined(MBED_RTOS_SINGLE_THREAD) __iar_Initlocks(); #endif