FlexCAN Reception for only 8 message ID

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FlexCAN Reception for only 8 message ID

1,055 次查看
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 项奖励
回复
2 回复数

981 次查看
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 项奖励
回复

1,045 次查看
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 项奖励
回复