S32K396 CAN Interrupt

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

S32K396 CAN Interrupt

Jump to solution
1,427 Views
Jason88619
Contributor II
Hello everyone, I'm currently using the S32K396-BGA-DC1 development board and want to receive CAN messages via interrupts. My configuration is as shown in the attached image. However, this configuration fails to receive CAN messages successfully.
I would greatly appreciate it if anyone could point out my mistakes, provide a CAN + interrupt reception method, or a CAN + Rx FIFO reception method. Thank you in advance!
Jason88619_0-1761823260194.pngJason88619_1-1761823273826.pngJason88619_2-1761823536747.png

 

Jason88619_0-1761823489078.pngJason88619_1-1761823512446.png

 

 

 

Tags (1)
0 Kudos
Reply
1 Solution
1,394 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Jason88619,

From your main.c routine, I can see you are not initializing the interrupt controller driver. If you are using latest RTD, simply call the following function:

/* Initialize Interrupt */

IntCtrl_Ip_Init(&IntCtrlConfig_0);

There is no need to call IntCtrl_Ip_EnableIrq()IntCtrl_Ip_InstallHandler(), as IntCtrl_Ip_Init() does call both of these functions.

There are some examples for FlexCAN implementation in community. Please see them below:

They are not based on S32K396 derivative, but configuration and main routine should be the same.

Best regards,
Julián

View solution in original post

0 Kudos
Reply
2 Replies
1,395 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Jason88619,

From your main.c routine, I can see you are not initializing the interrupt controller driver. If you are using latest RTD, simply call the following function:

/* Initialize Interrupt */

IntCtrl_Ip_Init(&IntCtrlConfig_0);

There is no need to call IntCtrl_Ip_EnableIrq()IntCtrl_Ip_InstallHandler(), as IntCtrl_Ip_Init() does call both of these functions.

There are some examples for FlexCAN implementation in community. Please see them below:

They are not based on S32K396 derivative, but configuration and main routine should be the same.

Best regards,
Julián

0 Kudos
Reply
1,386 Views
Jason88619
Contributor II

Thank you so much!

0 Kudos
Reply