We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Just to confirm, are you definitely sure that your CAN hardware is working correctly? If so, are you sure that you are communicating between your microprocessor and CAN chip - can you for instance write values into the CAN chip, and then read them back again? What sort of clues do you have? Also, not quite sure what you mean in your original e-mail - are you saying that it does actually work some of the time, ie intermittantly; or not at all? Yours, Richard.
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