RTOS settings
If your application includes an RTOS, you will need to update compiler and linker settings in IAR Embedded Workbench. This is needed to make the C/C++ library implementation thread safe. This process is described in the
IAR C/C++ Development Guide
Open
Project > Options > General Options > Library Configuration
.
In the
Library
menu, select "Full".
Select the
Enable thread support in library
check box.
Click
OK
.
Once enabled, this will require implementations of functions that perform the locking that are provided by the clib-support library that we provide.
https://github.com/Infineon/clib-support/blob/master/README.md
Note:
This is not specific to Infineon devices but more about how the IAR compiler/linker and C library implementation work. All compilers have similar enabling needed