CAN IRQHANDLER

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

CAN IRQHANDLER

1,224 Views
lohrsistemas
Contributor IV

How I use CAN interupt to receive data? Do I have to use CAN0_ORed_IRQHandler?

Because without using interrupts I'm losing data.

Does anyone have an example?

Thanks.

2 Replies

782 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

You need to use CAN0_ORed_0_15_MB_IRQHandler or CAN0_ORed_16_31_MB_IRQHandler depending on used MB. Moreover, the interrupt controller have to be initialized and interrupt enabled within the FlexCAN module for desired MB using the IMASK1 register.

 

Attached is the modified FlexCAN example which is included within an S32DS13 intallation.

Loopback mode is enabled (can be tested on single board) and interrupt for MB4 is added.

BR, Petr

782 Views
lohrsistemas
Contributor IV

Hi Petr,

Thanks for your feedback.

It's working here.

 

Regards.

0 Kudos