S32K312_CAN_TX_RX_using_MB_Interrupt not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K312_CAN_TX_RX_using_MB_Interrupt not working

505件の閲覧回数
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 返答(返信)

489件の閲覧回数
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 件の賞賛
返信

484件の閲覧回数
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 件の賞賛
返信

457件の閲覧回数
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 件の賞賛
返信