Other Parts Discussed in Thread: SYSBIOS, , PRU-ICSS-INDUSTRIAL-SW
Tool/software: TI-RTOS
Hi, everyone
when i use TI RTOS, i got a semphore overflow.
I ONLY post a semphore in timer3 isr, and pending the semphore in a task, after a long time running, a semphore overflow happen.
A). message display in CCS console
ti.sysbios.knl.Semaphore: line 319: assertion failure: A_overflow: Count has exceeded 65535 and rolled over.
xdc.runtime.Error.raise: terminating execution
B). code at semphore.c
After sem->count++, the sem->count equal to 0, so Assert_isTrue called the overflow process. that's mean sem->count before is -1
As I know, the semphore never less than 0, am i right, how can this happen.
C) . debug call stack
My Develop Enviroment
Compile : CCS 6.1.3
CPU : AM3352
RTOS :am335x_sysbios_ind_sdk_1.0.0.6
What's can cause this question, Is there any wrong with my usage.
Thank you.

