This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OS_ERR_FIFO_OVF when CAN data received

Hi everybody

I use SAM7x512 and RL-ARM OS.
here, OS has 7 tasks and one of them is for CAN receiver. OS_TICK is 1000 and OS_STKSIZE is 1024. and 500000 is my CAN baudrate(my board is just receiver and transmitter is a KVASER PCI CAN Interface).

speed of data transmission is my problem.

when for example transmitter side of CAN bus send a packet per 10ms or more there is know any problem but when I try to increase the speed after some packet (about 200 messages or more) I will get OS_ERR_FIFO_OVF in os_error function. but when I disable the CAN task all other task are working as well.

note: When the system is getting crash and doesn't do any tasks but it's not in os_error function in debug mode with ulink2 sometimes task of CAN in "RTX task and system" -> "stack load" shows "under flow" and after that it calls os_error (in usual states it's about 3% of stack usage)

I tried such works:

1. increase OS_STKSIZE
2. increase OS_FIFOSZ
3. increase CAN_No_ReceiveObjects
4. chaning the OS_TICK

but nothing happened

Does anyone know what I should do?