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.

TM4C1294 CAN Example?

Other Parts Discussed in Thread: EK-TM4C1294XL

Dear Support:

I have a customer that is looking for a good example of using CAN with the TM4C1294.  I looked in the SDK driverlib and TI-RTOS example using TI Resource Explorer and don't see any examples.  Do you know where I would find an example of using a CAN transceiver with the TM4C1294 launchpad?  Please advise.

Thanks,
Tim

  • Hello Tim

    The TivaWare has a base example under TivaWare installation path examples/peripherals/can/

    Besides that there is a can example under DK-TM4C123G EVM which can be adapted for TM4C129 LaunchPad.

    The reason why an example does not exist for TM4C129x is because neither the LaunchPad nor the EVM have CAN transceiver. There is an upcoming TI Design for TM4C129x devices for USBHS to CAN (time frame may be in late Dec'2016)

    I would be more than glad to assist the customer in the development of the basic can code.
  • Hey Amit:

    Thanks for the pointers and info - very helpful.  More than likely, I will need to put this together for this customer so looking for a good CAN example to ramp up on CAN.  I was going to use a more cost-effective TM4C1294EK board with a TCAN1042EEVM and flying leads to connect the 2 boards - hopefully that will work out ok.  I will check this code out that you referenced and get back with you on any issues - good to know you are available to help.

    BTW - is there any test hardware you can recommend to test out the CAN I/F once I get it up and running?  And any CAN EVMs that you know of that have been used in the past to interface to one of our cheaper Tiva launchpads (not the expensive DK-TM4C123G board) that provide example illustrations and example code?

    Thanks,
    Tim

  • My friend Tim - you do realize that you are writing upon a "public" forum - and that (potential) purchasers of that (fairly) priced board may well note your comments?   Or you've made that realization - now!

    Appears that not all vendor staff partake fully/regularly of vendor supplied, "Kool-Aid."    Good that.

    Your writing has motivated me/my firm to buy that (fairly) priced board (maybe several) - and likely (other) forum readers - as well...

  • Hello Tim

    The fly lead connections will work fine. Other than the DK-TM4C123G there is no other EVM with on board CAN transceiver. The other way would be to wire 2 EK-TM4C1294XL with a CAN bus connector.
  • Hey Amit:

    Ok, thanks and understand. I will try this out and get back with you.

    Thanks,
    Tim