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

can question

I am using RTX51_full,and I made a program with CAN controller(sja1000),now I have a trouble with can communiction.Except of CAN,all others seem well.When I add some code that independent of CAN operation,the CAN may cause fail,even when I change the Code Optimization level the CAN communication may get OK or fail.
Can someone give me advise
thank in advance

Parents
  • thank you
    CAN hardware is working fine.The communication between cpu and CAN chip is also well,I can use can_send() and can_wait() to send and receive data,but the remote frame(D_SEND_R_REC) usually get wrong.Some time it may ok,but when I add some new code to the other task(no deal with CAN)or change the code Optimization ,the remote frame may not answer correcttly.At this time if I add some new code again,perhaps it may get ok now .Why?
    thank you very much!
    L Qun

Reply
  • thank you
    CAN hardware is working fine.The communication between cpu and CAN chip is also well,I can use can_send() and can_wait() to send and receive data,but the remote frame(D_SEND_R_REC) usually get wrong.Some time it may ok,but when I add some new code to the other task(no deal with CAN)or change the code Optimization ,the remote frame may not answer correcttly.At this time if I add some new code again,perhaps it may get ok now .Why?
    thank you very much!
    L Qun

Children
No data