Using BIOS 5.41.04.18, CCS 3.3.38.2, Code Generation Tools: v6.1.16, Target Processor OMAP2430 IVA core
I have a BIOS thread of priority 1 and I have a BIOS semaphore statically created. My taskis run upon start-up. When it gets to the SEM_pend(&SEM0,10) statement, it never times out.
A workaround that I found that works is to create second task within the IDL running at priority 0 and a second semaphore. This Idle task only signals this second semaphore. Now if I put a second "SEM_pend(&SEM2, SYS_FOREVER) at the top of my priority 1 task, then the SEM_pend(&SEM0,10) will time out as expected.
Is there a better way, or a more proper way?
Thanks;