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.

CCS/TMS570LC4357: CAN

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

Hello,

Can part does not work, I have no data on can pins. I used the function "canTransmit(canREG1, canMESSAGE_BOX1,(const uint8 *)  &temp);"

  • Hello,

    Please, give us more information on your hardware setup.

  • If I have two different projects, one for CanTx and one for CanRx so the setup for CanTx should be done, without altering anything at Rx?

  • Hello,

    Just set pins as functional.As I mentioned in this post:

    "When CANn Tx/Rx pin is set as functional (CAN) then Direction, Pull up/down and open drain are not applicable."

    Also, in this post:

    you can find a project for TMS570LC4357 that can be uses as reference.

    Also, this document could be useful to you:

    Keep in mind that Tx and Rx pins must be connected to CAN Transceiver on both sides. Termination resistors are also mandatory. CANL and CANH from the first transceiver should be connected to CANL and CANH to another transceiver.

    So, if you are using LaunchPad you must connect CAN Tx and Rx pin to transceiver then the transceiver must be connected to another transceiver. The second transceiver is connected to Tx and Rx pins at another CAN port (the second transceiver and CAN port can be on another LaunchPad).

    If you are using HDK CAN transceivers and termination resistors are onboard of HDK and you only have to connect CANH and CANL of both nodes.

  • I have problems with this function, I only execute the first line after it stops. 

    WHY?

  • Hello,

    Comment 2nd and 3rd row and check whether 1st message was sent and the other node receives it.

  • Well the data is sebt only from the first line, after I execut the second line nothing happens.