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.
Tool/software: Code Composer Studio
To send data from one senzor to a board to another board via CAN, do I need to configure all modules CAN1, CAN2, CAN3, CAN4?
Hello,
You don't have to configure all CAN modules. You have to configure only used module/s.
Be aware if you are using LaunchPad, you have to connect CAN transceiver/s (for example SN65HVDA541). LaunchPad does not have transceivers on board.
CAN module is described in Chapter 27 of device TRM.
Examples for using CAN can be found in HALCoGen Examples folder. Description of using this example is in Help-->Help topics-->Examples.
I recommend you to start with examples.
Best regards,
Miro
Hello,
It depends on you needs. You have to configure at least one message box for transmitting and at least one message box for receiving. In the example CAN1..4 are configured because later in application all of them are used.
Be aware if you are using LaunchPad, you have to connect CAN transceiver/s (for example SN65HVDA541) if you want to communicate with another board. LaunchPad does not have transceivers on board. Example uses internal loopback mode and that is why transceivers are not used.
Best regards,
Miro
Hello,
CAN is a multi-master serial bus. Two or more nodes are required on the CAN network to communicate. All nodes are connected to each other through a two wire bus.If your device will be a part of CAN network, yes, you can configure only CAN1 for TX and RX.
Best regards,
Miro