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.

TCAN1043-Q1: TCAN1043 code example for TMS570 MCU

Part Number: TCAN1043-Q1
Other Parts Discussed in Thread: TCAN1043, TMS570LS1224

I am using TCAN1043-Q1 with TMS570LS1224PGE device.

Can I please get a CAN communication code example for TMS570/ any MCU device with the TCAN1043 ? 

As I am a beginner , please  tell me the sequence that  I need to follow.

  • Hi Sakthi,

    This forum has experts for our interface devices so we're most familiar with the physical and low-level protocols of interface standards like CAN. The MCU forum would likely have more expertise when it comes to software examples and processor configuration. I've moved your thread over to the Sitara team so you may get some insight from their team. 

    In the meantime, here's a link to some resources I found for CAN node configuration and a  CAN bus bootloader using this MCU family. While it doesn't look like these have associated demo code, they will help with your high-level understanding of CAN controller configurations. 

    If you have any questions regarding the TCAN1043-Q1 device, or the CAN physical or low-level protocol layers, let me know. I'll stay on the thread to help with any such questions. 

    Regards,
    Eric Schott

  • Hello Sakthi,

    TCAN1043 CAN transceiver supports both CAN and CAN FD. TMS570 doesn't have build-in CAN FD controller, so my example attached is only for regular CAN communication with interrupt. The MCU is TMS570LS1224 which has three CAN modules.

    1. CAN1 mailbox1 is configured for transmission, and CAN2 mailbox2 is used for reception. The message ID for those two mailboxes are 123. 

    2. Extended ID format (29-bit ID) is used for those two mailboxes

    3. The baudrate is 500Kb

    The #1/#2/#3 are configured in canInit() (can.c)

    TMS570LS1224_CAN_Interrupt.zip