S32K144 CAN TX interrupt issue

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

S32K144 CAN TX interrupt issue

1,063件の閲覧回数
jianxun_liu
Contributor I
Hello everyone, Good day! I have a S32K144 application facing a problem. While a CAN message is transmitted, the corresponding CAN_IMASK1 and CAN_IFLAG1 bit is set. but it can't generate TX interrupt. (it can generate RX interrupt while a CAN message is received) Could anyone tell me where is wrong? IDE: S32DS_ARM_v2018.R1 Compiler: IAR ANSI C/C++ Compiler V8.32.3.193/W32 for ARM SDK: S32SDK_S32K1xx_RTM_3.0.0
0 件の賞賛
返信
2 返答(返信)

1,054件の閲覧回数
jianxun_liu
Contributor I

after further analysis, I found not any message receiving can generate RX interrupt.

only messages in MB ID 0 ~ 15 can generate RX interrupt.

messages in MB ID 16~31 can't generate interrupt no matter TX or RX.

I don't know why CAN0_ORed_16_31_MB_IRQHandler interrupt can't be generated.

0 件の賞賛
返信

1,039件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

did you modify max available MBs within FlexCAN component? By default 16 MBs are used.
I tried demo example within S32DS.ARM.2.2, SDK_RTM3.0.2 (but using GCC compiler), changed max MBs to 32 and used e.g MB 17 and 21 for TX resp. RX functions and CAN0_ORed_16_31_MB_IRQHandler was called normally as expected.

BR, Petr

0 件の賞賛
返信