FlexCAN Reception for only 8 message ID

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

FlexCAN Reception for only 8 message ID

657 Views
xiaobaby22
Contributor I

We are using the S32K118 board, and I have made the following configuration.
Set the register CAN_MCR[IRMQ] to 0,and set the option of Rx FIFO ID fiters number to 8 Rx FIFO Fiters.The result is that only 8 CAN IDs can be accepted. I would like to accept a quantity of CAN IDs exceeding 8.So I change the number of 8 to 16.But the board can't work of can communication when do this configuration.I have seen some other examples, whether it need to change the number to 40.
Appreciate any help!

Thanks

0 Kudos
Reply
2 Replies

583 Views
xiaobaby22
Contributor I

yeah,I set the option of Rx FIFO ID fiters number to 16 Rx FIFO Fiters.It mean CTRL2[RFFN] (RFFN = 0x01),So the Remaining available maixboxes should begin to MB10.It could be work when I change the number MB8 to MB10.

0 Kudos
Reply

647 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

can you share the code you have?
CTRL2[RFFN] specifies number of ID filter element used. Be sure that also MCR[MAXMB] is set accordingly.

Below SDK example show usage of RXFIFO with DMA with 16 filter elements set https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-RXFIFO-DMA-S32DS-ARM-2018-R...

BR, Petr

0 Kudos
Reply