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.

RTOS/CC2640: link failure when adding posix semaphore to sample project ble5stack\simple_peripheral

Part Number: CC2640
Other Parts Discussed in Thread: SYSBIOS,

Tool/software: TI-RTOS

while adding semaphore to sample project ble5stack\simple_peripheral, the final linkage step complains about "undefined first referenced symbol sem_init". Initially I thought it is a lib file missing in the -l link list. But I didn't find anything similar to posix in the linked libs in mutex sample project, which doesn't have the link error.
Some posts in the forum are talking about adding var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore'); in the project cfg setting. Adding it app_ble.cfg doesn't solve the problem.

I failed to find answers in "TI-RTOS 2.20 for CC13xx/CC26xx SimpleLink™ Wireless MCUs Getting Started Guide".

Many thanks for suggestions on solution/further study materials to understand the mechanism.