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.

TM4C1294NCPDT: CAN Driver Example Code for SYS/BIOS

Part Number: TM4C1294NCPDT


We are using TM4C1294NCPDT in one of our new designs.  We are planning to used TI SYS/BIOS RTOS.  In the example folder I could not find any SYS/BIOS example for CAN DRIVER . Request you to help us in getting the same.

  • We do not have a SYS/BIOS CAN driver for TI-RTOS. The recommended use of CAN in TI-RTOS is to limit all direct communication with the CAN module to a single task and a single interrupt routine. Use mailboxes to pass the requests to send to the CAN task, and mailboxes to pass data read from the CAN interrupt routine.

    The interface registers that are used to configure and read the CAN-mailboxes (not to be confused with RTOS mailboxes) complicate the use of a multi-tasking operating systems. The version of can.c that is in TivaWare version 2.2.0.295 and earlier uses interface register set 1 (IF1) for most operations and IF2 for the function CANMessageGet(). This can cause issues when using CAN functions in both a task and in an interrupt routine. I suggest instead that you use the version of can.c which is attached. It will use IF2 when an interrupt routine is active and IF1 when no interrupt routines are active.

    /cfs-file/__key/communityserver-discussions-components-files/908/5140.can.c

  • Hi Bob Crosby,

    Thanks for the quick reply. I will try and confirm. 

    Thanks

    Haranath