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.

CC1310: Semaphore_pend does not release the task even when pended with finite timeout

Part Number: CC1310


Hi Everyone,

I am working with empty example from simplelink sdk v3.20. I am using Semaphores and interrupts in my program. I configure a pin to detect a neg edge and post a semaphore a sub-routine. The Semaphore_pend is put in a called function from mainThread as following,

#define TICKS_PER_SECOND (uint32_t)(1000000/Clock_tickPeriod)
#define SEMAPHORE_WAIT_IN_SEC (uint32_t)(5*TICKS_PER_SECOND)

Semaphore_pend(semHandle,SEMAPHORE_WAIT_IN_SEC);

However I see that the task is not unblocked within five seconds. To verify this, I put UART_write statements above and below the 'Semaphore_pend' and I do not see the print after the statement.

I also verified that all the handles are not NULL (UART,InterruptHandle,Semaphore etc.,)

Can someone suggest why this might be happening?

Thanks in advance,

-Chandrasekhar DVS