LPC55xx - MCAN - TX Event Fifo

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

LPC55xx - MCAN - TX Event Fifo

ソリューションへジャンプ
388件の閲覧回数
SynBilly
Contributor III

Hi there,

we are using a LPC5504 and we are sending CAN messages via "TX BUFFERs" (not via TX-Fifo, not via TX-Queue).

We expected that each time we successfully send a TX BUFFER, an entry would be written to the "TX Event FIFO" (message ID and timestamp, etc.). However, this is not the case for us. The "TX Event FIFO" remains empty and register "TXEFS" is 0x00.

Does the "TX Event FIFO" only work when sending CAN messages via TX-FIFO or TX-QUEUE?

Does the "TX Event FIFO" function have to be enabled explicitly somehow?
("TXEFC" is configured to 0x08100014 in our case)

 

Best regards, Andy

 

ラベル(2)
タグ(2)
0 件の賞賛
1 解決策
348件の閲覧回数
SynBilly
Contributor III

Ok, I got it.

You have to enable the "Tx Event Logging" in each TX buffer by setting bit "EFC".

SynBilly_0-1685004340181.png

 

SynBilly_1-1685004349306.png

 

You can use the function MCAN_WriteTxBuffer() to configure the TX buffer accordingly.

元の投稿で解決策を見る

0 件の賞賛
1 返信
349件の閲覧回数
SynBilly
Contributor III

Ok, I got it.

You have to enable the "Tx Event Logging" in each TX buffer by setting bit "EFC".

SynBilly_0-1685004340181.png

 

SynBilly_1-1685004349306.png

 

You can use the function MCAN_WriteTxBuffer() to configure the TX buffer accordingly.

0 件の賞賛