S32K312_CAN_TX_RX_using_MB_Interrupt not working

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

S32K312_CAN_TX_RX_using_MB_Interrupt not working

472 Views
scnaidu
Contributor II

Hello @Dinesh_Guleria

I am using S32K312 EVB and it's not hitting to flexcan0_Callback it's continously in main.c main() function for toggling led.

i used same *mex file and main.c ,main_can.c and main_can.h file

 

scnaidu_0-1742462048769.png

 

Tags (1)
0 Kudos
Reply
3 Replies

456 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

do you refer to below example?
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-CAN-Transmit-amp-Receive-Using-MB-I...
If testing this one directly, is it working on your EVB?
If just your project does not work, can you share it here?
There can be many reason interrupt is not hit. Assuming interrupt is properly set and enabled, detecting an error can prevent message to be stored in teh MB. So do you see anything reported on CAN tool or within module (check ESR1/ECR registers).
Do you have CAN transceiver properly initialized?

BR, Petr

0 Kudos
Reply

451 Views
scnaidu
Contributor II

hello  PetrS

i have referred same example here , i will be sharing the my project.

can you look into this and guide me 

Tags (1)
0 Kudos
Reply

424 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

change CAN PE setting so it corresponds for value set in FlexCAN component

PetrS_0-1742552160152.png

Check what CAN transceiver is used on your board. If TJA1153 then its initialization will be needed, if not already done. You can refer to https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test... for possible implementation.

BR, Petr

0 Kudos
Reply