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.

TMS320F28377D: TMS320F28377D

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Hi friends,

I am doing can interface  in TMS320F28377D Dev Board Rev1.1 and I have taken the reference code from C2000.

The example code can_external_loop-back.c file i modified as per my requirement I have to communicate with SOC board.

SOC board having two on board transceiver so I am using one for TMS320f28377D(I  have taken the TX and RX wires from the transceiver to my board pin 80 and 82) other for SOC board.

But while transmitting their receiving end very first time no data is available.After 28377D reset SOC is able receive the datas

but only once next time SOC only reading constant those datas.

While I am modified as only receiver i am not getting the interrupt in ISR?

I read status reg LEC is coming 7 and sometimes 1.How it is happening?

Can anybody please help me how to find out the issue?

Reagrds,

Ashru

  • Ashrumochan NathSharma said:

    Part Number: TMS320F28377D

    Hi friends,

    I am doing can interface  in TMS320F28377D Dev Board Rev1.1 and I have taken the reference code from C2000.

    The example code can_external_loop-back.c file i modified as per my requirement I have to communicate with SOC board.

    SOC board having two on board transceiver so I am using one for TMS320f28377D(I  have taken the TX and RX wires from the transceiver to my board pin 80 and 82) other for SOC board.

    But while transmitting their receiving end very first time no data is available.After 28377D reset SOC is able receive the datas

    but only once next time SOC only reading constant those datas.

    While I am modified as only receiver i am not getting the interrupt in ISR?

    I read status reg LEC is coming 7 and sometimes 1.How it is happening?

    Can anybody please help me how to find out the issue?

    Here SOC means microsemi's FPGA based ARMcortex+DSP dev Board.

    Reagrds,

    Ashru

  • I regret I am unable to understand what exactly your problem is. Please clarify which development board you are using. Would be ideal if you could post the photo of the board. Also, provide the wiring diagram between the boards (hand-drawn is OK). In the interim, please download SPRA876 and read section 3 carefully.
  • Thanks Mr Hareesh for responding.

    Now I am testing on TMS320F28377D Developemnt board and using the canloopback.c example code.

    Its working fine and i am able to read the data as it is loopbacked. On Tx pin when I am probing I am getting very low voltage

    output so I probed on Rx pin It is giving correct 3.3v and data is able to monitor.

    Can you please tell me in which manner data is being transmitting and receiving and how the frame format is filling?

    In the example code canloopback.c i am sending 8 bytes of data and i am getting the pulses as below.

    total time=206microsec

    i bit time = 2.03microsec

    data = 000001000001010010011111011111011111011111011111011111011111011111011111011111011111011111011111011100110001010

    This is the output as i am transmitting

    bute[8] = {FF,FF,FF,FF,FF,FF,FF,FF};

  • Once again, please clarify which board you are using. “Development board” does not mean anything to me. Either describe it properly or send me a photograph.

    On Tx pin when I am probing I am getting very low voltage output so I probed on Rx pin It is giving correct 3.3v and data is able to monitor.

    Please provide scope waveforms.

    Can you please tell me in which manner data is being transmitting and receiving and how the frame format is filling?

    Sorry I don’t understand what you are asking. Please clarify.

    It is hard to decipher a long string of ones and zeroes. However, I think the zeroes you are seeing in "11111011111011111011111011111011111011111011111011111011111011111011111011111" are the stuff bits. Please Google (in Images) "CAN data frame". That shows you the bitwise decoding of the data frame.

    Are you trying the example in the latest release of C2000ware?
  • Hi Harish ,
    Thanks for your information.
    I am able resolve my issue and able to do CAN communication.
    Regards,
    Ashrumochan