S32K148 FLEXCAN cannot get IDHIT value in RXFIR or in RX FIFO

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

S32K148 FLEXCAN cannot get IDHIT value in RXFIR or in RX FIFO

644件の閲覧回数
jlu
Contributor II

The configuration is using RX FIFO and interrupt. I can read a message from the CAN BUS, and I can output a message. I setup 8 ID filters for RX FIFO. The filters work fine - there is no interrupt when there is no ID match, and there IS a RXFIFO interrupt when there is one match. However, regardless where I put the correct ID filter, the RXFIR always shows IDHIT as 0. Should not it show the index of the matching filter?

タグ(1)
0 件の賞賛
1 返信

606件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes the RXFIR includes IDHIT and it is valid while the IFLAG1[BUF5I] flag is asserted. The RXFIR register must
be read only before clearing the flag. Also IDHIT can be read from C/S word, as shown in the Rx FIFO Structure description.

If have issues still please share filter table, mask registers and the way you read RXFIFO and RXFIR.

BR, Petr 

0 件の賞賛