This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCAN4551-Q1: Sample Code

Part Number: TCAN4551-Q1
Other Parts Discussed in Thread: TCAN4550-Q1

Tool/software:

Hi expert,

Customer is using our TCAN4551-Q1, but met problem following the software user guide when trying to send CAN message. The TFQF is 1 and seemingly data is blocked and could not send out. What registers should be checked further?

Customer is using the example on ti.com, but seemingly it's for TCAN4550-Q1, could it be also directly used at TCAN4551-Q1? Is there any more simple sample code to quick start the TCAN4551-Q1 for SPI to CAN communication?

Joyce

  • Hi Joyce,

    If the TX FIFO/Queue Full bit is set, then the device has has not been able to transmit messages, which could be because it has failed arbitration due to lower message ID priority status, or possibly because it has had too many transmit errors and has removed itself from bus communication.

    I would suggest checking the various interrupt, status and error counter registers in addition to the TX Buffer related registers to get more information.

    Try reading the following registers:

    0x000C

    0x0800

    0x0820

    0x0824 or 0x1050

    0x1018

    0x1040

    0x1044

    0x10C4

    0x10CC

    0x10D8

    Verify the device has not entered a Bus Off condition due to the Transmit Error Counter exceeding 255.  Also check that the INIT bit in the Control register 0x1018[0] is not set to '1' which would disable CAN bus communication.

    Regards,

    Jonathan