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/TMS570LS3137: Can we receive CAN Message on DCAN2 by Transmitting DCAN1?

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Dear Sir,

On TMS570ls3137, We have DCAN1 and DCAN2. i have to transmit Message from DCAN1 to DCAN2. DCAN2 will be at receiving end.   I have connected wires like DCAN1 High is Connected DCAN2 HIGH. DCAN1 Low is connected to DCAN2 Low. From DCAN1 or DCAN2 , i have connected to PCAN to show the CAN messages. Now if i received on DCAN2 can message than how to check on PCAN or cananlyser.. I check few thread on TI forum but they have mention like use AND gate between DCAN1 and DCAN2? Can you give me Possible solution of that can i recieve message on the DCAN1 to DCAN2?

Thank you.

Regards,

Krunal Desai

  • Hi Krunal,
    If I am understanding right, you are using TMS570LS31x Hercules Development Kit. The HDK has terminated CAN Transceivers on both interfaces so you don't need to use any AND gates.

    Best regards,
    Miro
  • 3617.can.c6787.sys_main.c

    Dear Miro,

    I have attached code of simple Can_transmit and Can_receive. I want to check transmit of data which is "Hercules". But on receive side which is DCAN2 (e.g. transreceiver) message is not receive. I will attached photo of my connection on TMS570ls31HDK . I will also attached sys_main.c and can.c. Can you tell me where I am going to wrong? Is it me to require another TMS evolution  board for transmit and receive Message?

    Thank and Regards

    KrunalDesai

  • Hello,
    Could you send me your HALCoGen project?

    You can deactivate CAN Messages 2..16 on both interfaces.

    Best regards
    Miro
  • 8688.10july.zip

    Hi Miro,

    I activated 8 messages as transmit in DCAN1 and 8 messages as receive in DCAN1. Same thing I did in DCAN2 also. If  I want to  send more no of message than I can activate more no of messages. I have attached helcogen file.

    Thank and Regards,

    Krunal Desai

  • Hi Krunal,
    Are you observing with CAN analyzer on CAN network that CAN1 is sending a message?

    Best regards,
    Miro
  • HI Miro,

    I have connected PCAN show the messages which transmited. i can see messages of DCAN1. but after receiving end i am not able see transmit from DCAN2.

    thank and regards

    Krunal Desai

  • Hi Krunal,

    Do you see the messages received in the DCAN2? Are you expecting further transmission from DCAN2? Did you update the sys_main.c file to transmit messages from DCAN2 and receive in DCAN1?

    Regards,
    Sunil
  • Dear Sunil,

    1) No, i am not able tp recieved on DCAN2.  

    2) Yes, Whenever DCAN1 is transmitting message to DCAN2, After DCAN2 is recieved than i want verified on PCAN tool that Whatever Receiver of DCAN2 is same as the DCAN1 message. So i am only Transmitting from DCAN2 message with different ID and see the message on PCAN.

    3) No, i did not update sys_main.c. I am only transmitting message from DCAN2 and verifing with DCAN1 messages.

    Thank you .

    Regards,

    Krunal Desai

  • Dear sunil,
    can you please give me urgent solution because in application we need CAN communication. In above i attached project. so that if you have any solution i can modified in can.c and resolve problem. or you can take webx also. Thank you.
    Regards,
    Krunal Desai
  • Hello Krunal,

    I found from your HALCoGen file that the CAN1 MSG1 and CAN2 MSG1/9 are not enabled.

  •  Hi Wang,

    I do not know what happen to halcogen File, in my PC it is activated of transmit and receive part. Today I made new Project. I will attached project. I will also attached screenshot4188.7AUG.zip  in which transmit part of array is coming in output but Receiving part is not coming in output.  I can see on the PCAN for transmitting CAN message. But receiving part  is not properly working.  

  •  

    This is are two images.  First image of transmitting message is seeing on the  PCAN . Second one is for receiving part not coming. Can you give me possible solution? Thank you.

    Regards,

    Krunal Desai

  • Hi Krunal,
    Did you manage this problem?

    Best regards,
    Miro
  • Hi Krunal,

    I assume you have solved the problem.