CAN Rx Notification MCAL & CAN2 Enhanced Rx FIFO not available

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

CAN Rx Notification MCAL & CAN2 Enhanced Rx FIFO not available

900 Views
noobsplzwin
Contributor III

Hi, NXP forum,

1. I am trying to use the CAN MCAL in the configuration tool to meet AutoSar requirements. But I couldn't find the CAN Rx Notification Callback like the FlexCan driver.

I only found one API - void Can_43_FLEXCAN_MainFunction_Read(void), which can only receive the CAN message in polling.

May I know what the alternative is for CAN Rx Callback in MCAL?

c5c4b57a06c830b293cbe638ffdf854.png

2d5fef37711d81c64a6a781e72148f8.png

2.  I noticed to use Can_43_FLEXCAN_MainFunction_Read(), I need to configure the RxFifo. However, for CAN2, only legacy FIFO is available, and the HW Filter code must be multiple of 8. But the CAN ID I am trying to read is 0x784. Is the enhanced FIFO only available on CAN0?

noobsplzwin_0-1723157786721.png

 

Thanks ahead for any help.

Connor

 

 

0 Kudos
Reply
1 Reply

869 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) use CanIf_TxConfirmation and CanIf_RxIndication functions which are called upon successful transmission and reception. Refer to RTD demo showing polling mode.

2) yes, enhanced RXFIFO is only available on CAN0 on most S32K3 devices, see Table 476. FlexCAN configuration and instances of the device Reference Manual for more info

BR, Petr

0 Kudos
Reply