Hello, I am implementing FlexCAN transmission and reception on an S32K312 using interrupts, but the data transmitted by the S32K312 does not match what I receive using a CAN card. Could you please advise me on possible reasons for this? Attached is an illustration of my configuration setup.
Solved! Go to Solution.
1.first, the demo you send to me can build sucess cause missing some file. please double check it.
2.second, In your code, the “dummyData” array has not been modified, so the data in your screenshot is inconsistent with your code.
Could you please provided your project so that we can help you find the root cause.
1.first, the demo you send to me can build sucess cause missing some file. please double check it.
2.second, In your code, the “dummyData” array has not been modified, so the data in your screenshot is inconsistent with your code.
The CAN transmission is called in the following part of the code.
dummyData[8]={1,2,3,4,5,6,7,8}
There is a problem with the usage of C pointer.
Please try to change the highlighted part below.
Thank you. I made a big mistake. I'm sorry.
Hello, no matter what data I fill in the dummy array, the data I receive through the CAN card is always the same (the CAN ID is correct, but the CAN data seems to be address information). The attachment is the latest successfully compiled code. It is consistent with the phenomenon I described.