1945839_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

1945839_en-US

1945839_en-US

s32k312 flexcan interrupt

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.微信图片_20240903112421.png微信图片_20240903112337.png微信图片_20240903112144.png微信图片_20240903112513.png

Re: s32k312 flexcan interrupt

Thank you. I made a big mistake. I'm sorry.

Re: s32k312 flexcan interrupt

Hi@fengba_360

There is a problem with the usage of C pointer.

Please try to change the highlighted part below.

Senlent_0-1725354043327.png


Re: s32k312 flexcan interrupt

The CAN transmission is called in the following part of the code.

dummyData[8]={1,2,3,4,5,6,7,8}


微信图片_20240903152907.png

Re: s32k312 flexcan interrupt

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.

Re: s32k312 flexcan interrupt

Hi@fengba_360

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.

Re: s32k312 flexcan interrupt

hello,The attachment is the project information. Please check it. I feel like I sent the address information. thanks。

Re: s32k312 flexcan interrupt

Hi@fengba_360

Could you please provided your project so that we can help you find the root cause.

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 08:55 PM
Updated by: