I have been using the TCAN45xx Software User's Guide SLLU270 and the sample software, and it has been helpful to get the device going.
I am struggling to differentiate between the Tx FIFO and Tx Queue setups and usage. I believe I need to use Tx FIFO topology for my application.
1) The sample software function TCAN4x5x_MRAM_Configure always sets REG_BITS_MCAN_TXBC_TFQM. Shouldn't this be a configurable part of the input structure? (although I know that the transmit example in main() is as "Dedicated Tx Buffers").
2) The example section 4.3.1 "Writing a CAN Message to the Tx Buffer" seems to describe Tx FIFO transmitting one message. If i wanted to transmit multiple messages, is the step between 4 and 5 to read TXFQS.TFQPI again, or can I just increment/wrap according to the value I read originally from TXFQS.TFFL?
3) Once I have loaded more than one message, is step 5 a request to transmit from the TXFQS.TFGI index, and not TXFQS.TFPI ? or have I misunderstood:
"2. Tx FIFO: The TCAN45xx handles buffer management. The microcontroller reads the Tx FIFO put
index to place new messages in the correct buffer. When requesting multiple messages be sent, the
Tx FIFO get index is referenced and sends data based on what was first added to the FIFO"
Many thanks,
Ed.