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.

Semaphores and DSP/BIOS

Hello,

 

I'm using DSP/BIOS 6.21.00.13.

I'm trying to use a semaphore, initialized:

 

Semaphore_Params sem_params;

Semaphore_Params_init(&sem_params);

sem_params.mode = Semaphore_Mode_BINARY;

Semaphore_Handle sem_handle = Semaphore_create(0, &sem_params, NULL);

 

Later on, I try to use the semaphore, using semaphore pend:

xdc_Bool res = Semaphore_pend(sem_handle, BIOS_WAIT_FOREVER);

 

This function returns immediately (even though I haven't posted the semaphore anywhere), and the return value is 3.

 

Any reason why this happens?

 

Thanks,

Arya.