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
Solved! Go to Solution.
Ok, I got it.
You have to enable the "Tx Event Logging" in each TX buffer by setting bit "EFC".
You can use the function MCAN_WriteTxBuffer() to configure the TX buffer accordingly.
Ok, I got it.
You have to enable the "Tx Event Logging" in each TX buffer by setting bit "EFC".
You can use the function MCAN_WriteTxBuffer() to configure the TX buffer accordingly.