How to configure a function of ISR to read a CAN message in PE?

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

How to configure a function of ISR to read a CAN message in PE?

756件の閲覧回数
aaronlee
Contributor V

Hi,

I am using S12ZVCA & Processor Exprt. I have configured the CANPHY0:Init_CANPHY & CAN1:FreescaleCAN. But I don't know how to configure a function by interrupt to read a CAN message.

I was configure as following, but got some error at build.

pastedImage_1.png

pastedImage_2.png

The PE project as attachment.

Do you have any example code or any recommend?

Best Regard,

Aaron

タグ(1)
3 返答(返信)

580件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Aaron Lee,

If you want to configure a function by interrupt to read a CAN message,  only just need the component of "FreescaleCAN", also there is example code under Typical Usage , there is how to configure component and

the demo code:

pastedImage_1.png

Hope it helps,


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

580件の閲覧回数
aaronlee
Contributor V

Hi Alice,

"Help on component" very useful. Thank you very much.

Best regards,

Aaron 

0 件の賞賛
返信

580件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Aaron,

Welcome !


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信