Other Parts Discussed in Thread: TCAN1042DEVM
I was wondering how I can configure the LAUNCHXL-F28379D to use the TCAN1042DEVM as the second CAN transceiver.
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.
I was wondering how I can configure the LAUNCHXL-F28379D to use the TCAN1042DEVM as the second CAN transceiver.
The Lauchpad uses GPIO12 (CANTXB) & GPIO17 (CANRXB) for the on-board CAN transceiver. You need to identify GPIO pins for CAN-A function on the Boosterpack headers and connect them to the TCAN1024 EVM. For example, GPIO4 & GPIO5 on JP4. And don’t forget to connect the grounds of the two boards together.
You sent me back here to resolve this issue. Thanks in advance! I was wondering how I can configure the LAUNCHXL-F28379D to use the TCAN1042DEVM as the second CAN transceiver. For my system I am wanting two CAN interfaces to talk with different systems, but need help connecting the TCAN1042DEVM to establish two CAN transceivers. I have hooked them up in CCS to GPIO5 for CANRXA and GPIO4 as CANTXA. I am using the can_ex3_external_transmit project to see if I can get CANA and CANB talking to each other, or does that not work? I need help with this issue and figuring out how to have two working CAN transceivers for the LAUNCXL-F28379D. I am stuck with this issue. The code for the can_ex3_external_transmit example is only different by establishes the LAUNCHXL as a predefined symbol and changes the CANA RX and TX GPIO pins to 5 and 4 respectively. Thanks in advance
I was wondering how I can configure the LAUNCHXL-F28379D to use the TCAN1042DEVM as the second CAN transceiver.
There is nothing special you need to do to "configure" the LaunchPad to use the 2nd CAN. Just connecting the CANTXA & CANRXA pins to the TCAN1024EVM would suffice. What your code should do is to enable the clocks to both CAN-A & CAN-B.
but need help connecting the TCAN1042DEVM to establish two CAN transceivers.
Please refer to the wiring diagram in page 2 of www.ti.com/lit/SPRACU9. Or simply refer to the schematics of the LaunchPad itself. Connecting the CAN pins to a CAN transceiver is pretty simple.
I have hooked them up in CCS to GPIO5 for CANRXA and GPIO4 as CANTXA.
It is very important to reconfigure the GPIO settings in your project. I have explained how to do this in www.ti.com/lit/SPRACE5.
I am using the can_ex3_external_transmit project to see if I can get CANA and CANB talking to each other, or does that not work?
Merge the code in can_ex5_simple_receive.c into can_ex4_simple_transmit.c, so that both transmit and receive functions are in the same code. Ensure transmits runs on CAN-A and Receive runs in CAN-B, so retain all that code. However, you can remove duplicate system-level functions like Device_init(); and Device_initGPIO();
Do take a look at the debug tips in SPRACE5, if something doesn’t work. I have created a video to help with the first communication project using DCAN: https://training.ti.com/getting-started-dcan-module. Please take a look.
The TRM chapter explains the CAN protocol implementation in the MCU. i.e. it explains the functions of the various registers/bits. However, it does not explain the protocol itself. For protocol information, refer to these excellent videos: