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.

TM4C1294NCPDT: How to use the function sem_wait()?

Part Number: TM4C1294NCPDT

I run mmwavelink 2.2.3.1 code on TI-RTOS in TM4C1294, and implement the interface rlOsiSemWait() using the following way. 

rlInt32_t rlSyncObjWait(rlOsiSemHdl_t* semHdl, rlOsiTime_t timeout) {
    return sem_wait((sem_t*)(*semHdl));
    return SOK;
}

But when the function rlOsiSemWait() executes, code will abort. What's the problem?