S32K312_CAN_TX_RX_using_MB_Interrupt not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K312_CAN_TX_RX_using_MB_Interrupt not working

495 次查看
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

 

标记 (1)
0 项奖励
回复
3 回复数

479 次查看
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 项奖励
回复

474 次查看
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 

标记 (1)
0 项奖励
回复

447 次查看
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 项奖励
回复