LPC55xx - MCAN - TX Event Fifo

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

LPC55xx - MCAN - TX Event Fifo

跳至解决方案
376 次查看
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 解答
336 次查看
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 回复
337 次查看
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 项奖励