Other Parts Discussed in Thread:SYSBIOS
FPGA send doorbell to C6678 through SRIO per 0.5 seconed, after reveiving the doorbell, the doorbellISR post once semaphore, then the task1 pend the semaphore, and nwrite counter to FPGA. This is one cycle. But sometimes the test failed with error info:
ti.sysbios.knl.Semaphore: line 214: assertion failure: A_pendTaskDisabled: Cannot call Semaphore_pend() while the Task or Swi scheduler is disabled.
xdc.runtime.Error.raise: terminating execution
is the gap too short ?
Nancy Wang:
参考以下帖子看一下,不建议在ISR中调用semphore pend。
e2e.ti.com/…/827230
,
simon xie:
我没有在ISR中调用semphore pend。
ISR 中调用的是semphore post,任务中才是semphore pend。
,
Nancy Wang:
请关注一下英文论坛工程师的回复。
e2e.ti.com/…/967149