CAN IRQHANDLER

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

CAN IRQHANDLER

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

973件の閲覧回数
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

973件の閲覧回数
lohrsistemas
Contributor IV

Hi Petr,

Thanks for your feedback.

It's working here.

 

Regards.

0 件の賞賛
返信