Dear support,
We work with Piccolo F28035PN card and build application with SYSBIOS(CCS ver 5.1). that use CAN peripherials. I have CAN bus HWI:
void ECAN1Isr_prev (void) //interrupt#101
{
Semaphore_post(SEM_CAN_MSG_RECEIVED);
}
and the task for receive CAN-data:
while (1)
{ // Wait for a message to be recieved
Semaphore_pend(SEM_CAN_MSG_RECEIVED, BIOS_WAIT_FOREVER);
m_SemaphoreCounting++;
}
SEM_CAN_MSG_RECEIVED defined is configuration as:
var SEM_CAN_MSG_RECEIVEDParams = new Semaphore.Params();
SEM_CAN_MSG_RECEIVEDParams.instance.name = "SEM_CAN_MSG_RECEIVED";
SEM_CAN_MSG_RECEIVEDParams.mode = Semaphore.Mode_COUNTING;
Program.global.SEM_CAN_MSG_RECEIVED = Semaphore.create(0, SEM_CAN_MSG_RECEIVEDParams);
After 1-st CAN interrupt arrived the program always increment m_SemaphoreCounting without any relation to HWI interrupts.
What could be the reason of this strange behaviors.
Thanks,Sabina