S32K144 CAN TX interrupt issue

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

S32K144 CAN TX interrupt issue

1,062 Views
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 Kudos
Reply
2 Replies

1,053 Views
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 Kudos
Reply

1,038 Views
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 Kudos
Reply