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.

TCAN4550: TCAN4550 application questions

Part Number: TCAN4550
Other Parts Discussed in Thread: AM4379

Hello,

Our customer  used TCAN4550 and met the below questions:

Our board is master AM4379, canfd communication is TCAN4550, TDC enable, TDCV = 12,We arbitrate in 500K, 4M data transmission, sample rate at 72%, when receiving data PSR register RFDF, RBRS bit is sometimes 0, after communication for a period of time the correct data is not received, please help to analyze the possibility of the problem. Thank  you very much.

Best regards

kailyn

  • Kailyn,

    Thanks for bringing this to E2E. Is it possible to share register contents of the interrupt registers as well? Both 0x0820 and 0x0824, whenever messages are not correctly received? And are messages being received correctly ever, or are they never received correctly?

    Also, can you share any waveforms during CAN communication? The signals that would be helpful are CANH and CANL.

    Regards,

    Eric Hackett 

  • Hi Eric,

    Thank you very much for your reply, I would confirm with the customer.

    Best regards

    kailyn

  • Hi Eric,

      Customer has changed the configuration of MARM to realize communication with highest 48bytes each frame. But he couldn't get the  64bytes communication, could you please help?

    48 bytes configuration:MCAN_IR(h1050) = 0,DEV__IR(h0820) = h04a8.

    Best regards

    Kailyn

  • Hi Kailyn,

    It seems that the SPIERR interrupt flag is set. This would indicate that there was a problem with one of the SPI transactions from the last time this interrupt was cleared. Please ensure that the SPI format for this device is being properly followed. If the SPI format deviates, the device will ignore the message and configuration may be left incomplete. 

    The MRAM for the CAN controller needs to be configurated to the proper size in order to store larger data payloads. Keep in mind that the device only has 2k Bytes of MRAM, so if a 64 byte payload is used, the number of packets that can be stored will be limited. Please refer to the TCAN4550 Software User's Guide for more information on how to configure the buffer and FIFOs for 64 byte payloads. 

    Are you currently using the drivers from the TCAN4550 Demo? If so, please share the initialization and population of the TCAN4x5x_MRAM_Config struct for the TCAN4x5x_MRAM_Configure() function call. 

    Regards,
    Eric Schott

  • Hi Eric,

    Thank you very much for your reply.

    The customer gave feedback that he  downloads the MSP430 driver  which is modified  for TCAN4550 with Linux platform,  he used  in-thread polling interrupt, Then read the data. Data is sometimes lost.

    Best regards

    Kailyn

  • Kailyn,

    Are you saying that messages are getting lost when trying to retrieve from the RX memory? It may be the case where the polling isn't happening as frequently as messages are being received, and so messages are getting overwritten.

    Regards,

    Eric Hackett