Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi?
I have encountered a problem when using sysbios in TMS320F28335. I am trying to realize a Task block CAN communication interface . Mainly including a send interface named 'postCanMailBlock' and a send interface named 'pendCanMailBlock'. Besides ,there are a HWI function to receive can message from hardware port and a CAN listening task to handle those send and receive request. When 'postCanMailBlock' is invoked , the message to be sent will be pushed into a send buffer which is implemented by MailBox with MailBox_send API. Then the CAN listening task will get this send event and send this message by invoking hardware layer function. Similarly, a CAN frame received by hardware ports will be pushed into a receive buffer which is also realized by MailBox in the HWI function, and the CAN listening task will read the receive buffer and post those received messages to corresponding user self's receive buffer(every can user create a CanMailBox struct which maintain a private receive buffer。)
However,the program crashed after running a little time with a tip "Task or Swi Scheduler is disabled ". I don't use any hwi disable or swi disable or task disable function in the program. After track to the code, I found the task scheduler is indeed disabled, but I can't confirm which statement result to it. Then, to trace code of the BIOS step and step, I close the compile optimization of the BIOS in the custom compile options. However, the phenomenon didn't appear after the close of compile optimization . So, It is a inner compile optimization bug of sys/bios or other reason ? In addition, there's no IDLE task or function in my program, but that's seem to irrelevant to my problem. My bios version is bios_6_35_01_29 , CCS is 5.4 , compiler version is V6.4.6,XDCtools version is 3.25.06.96.

