SPNA245 September 2020 TM4C1290NCPDT , TM4C1290NCPDT , TM4C1290NCZAD , TM4C1290NCZAD , TM4C1292NCPDT , TM4C1292NCPDT , TM4C1292NCZAD , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1297NCZAD , TM4C1297NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129CNCPDT , TM4C129CNCPDT , TM4C129CNCZAD , TM4C129CNCZAD , TM4C129DNCPDT , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD
This application report demonstrates how to use the TM4C CAN module for simple transmit and receive operations. It also includes the code and utilities needed to implement a CAN-based bootloader.
Project collateral and source code discussed in this application can be downloaded from the following URL: http://www.ti.com/lit/zip/spna245.
LaunchPad™ and Code Composer Studio™ are trademarks of Texas Instruments.
Arm® and Cortex® are registered trademarks of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
All trademarks are the property of their respective owners.
TM4C MCUs offer a broad array of wired connectivity peripheral including an integrated CAN bus which only requires external CAN transceivers. Texas Instruments low-cost evaluation platforms such as the EK-TM4C1294XL LaunchPad™ Evaluation Kit for Arm® Cortex®-M4F based microcontrollers allow for quick and affordable evaluation for many device features. However, the LaunchPad lacks the required on board CAN transceivers. The Edde Flex CAN BoosterPack provides the transceivers needed for the EK-TM4C1294XL to communicate over CAN.
Installation of the Edde Flex CAN booster pack on the EK-TM4C1294XL or EK-TM4C129EXL Launchpad is straight forward. The first step is to put the jumpers for JP4 and JP5 in the vertical position as shown in Figure 2-1.
In this position, the CAN0RX (PA0) and CAN0TX (PA1) are routed to the BosterPack. UART2RX (PD4) and UART2TX (PD5) are then connected to the USB virtual serial port. All of the examples in this application report use CAN0 and UART2.
The Edde Flex BoosterPack is then placed on the BoosterPack 2 headers. Be careful to orient the BoosterPack as shown in Figure 2-2.
With switches 1 and 2 in the “on” position, PA0 and PA1 are connected to the transmit and receive pins of the booster pack CAN transceiver. Switch 3 in the "on" position connects a 120 Ω termination resistor between CAN0H and CAN0L.
With exception to the internal loopback example, all examples require a working CAN network. A simple CAN network can be constructed using two EK-TM4C1294XL each with an Edde Flex booster pack as shown in Figure 2-3. Note that there are three connections between the two systems: CAN0H, CAN0L and GND.