This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
I am porting some TM4C129X-based C-language code to CCS. The code uses the uC/OS-II RTOS. On a previous project that used the IAR compiler, I had to enable a thread-safe version of the run-time library via a linker option, as well as provide mutex functions for locking/unlocking. I have searched for a similar option in the Compiler manual, as well as in the forum, but so far have not been able to find any information on it.
Single-stepping through the malloc/free code shows that the _Lock() function is currently just a NOP instruction. How can I configure multi-thread support?
Regards,
Dave
The TI ARM compiler does not supply a thread safe variant of the RTS library. That said, the RTS library does offer rudimentary support for multi-threaded reentrancy by providing support for critical sections. For details, please see the section of the ARM compiler manual titled Handling Reentrancy.
Thanks and regards,
-George