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.

TMS320F280025C: HELP in debugging using LIN SCI

Part Number: TMS320F280025C

As the data is stored in the sData buffer we used the TI example LIN_ex3_sci_dma to do the same but the problem i am facing is that i am not able to receive the data in the rData buffer so that i can print it in my teminal ( i am using clear terminal ). if anyone has any idea about it please share your views on the same.

  • Hi Ritesh,

    Thanks for your question. Do you happen to have the register browser window or Expression window open in CCS? Specifically for the RX (or anything that is cleared on read) the debug viewer sometimes reads so fast that it clears the buffer by reading it before it has a chance to trigger an interrupt.

      

    Also, you probably already tried this, but if you haven't yet: I HIGHLY recommend starting with the LIN_ex7_sci_echoback example. That way you can do basically the same thing, but start without DMA. If that example works for you without issues, then the DMA settings may need to be tweaked in your configuration.

    Regards,

    Vince

  • Hey Thanks for the Reply it really helped me to understand quite a few things . Now i think what the problem i am facing is that the data is being received in the receive buffer somehow the buffer is getting cleared before the data is being sent to the rData variable . 

    Secondly i want to ask is lin trans receiver important print data on the terminal  .

  • Hi Ritesh,

    Now i think what the problem i am facing is that the data is being received in the receive buffer somehow the buffer is getting cleared before the data is being sent to the rData variable . 

    Good find, this is definitely the expression window or memory browser window causing the buffer to be read too quickly.

    Secondly i want to ask is lin trans receiver important print data on the terminal  .

    Transceiver is needed if you want to communicate to USB COM port, but if you just want to communicate to another LIN device (just 1 device) you can connect the TX of C2000 to other device RX. And also connect RX of C2000 to other device TX. Make sure to never connect TX to another TX directly as that can cause damage to the C2000 pin.

    Regards,

    Vince

  • Hey Vince thank for your reply it helped me a lot and solved the issue i was facing . Now i am facing problems in one more case as i am trying to debug externally using jtag xds110 probe but i am not sure how to go about it . i have used the aux connection of the the jtag for gpio control on my tms320f280025c control card and i was successful in doing so but rest i am not able to understand so if you have any insights about it please do share .

  • Hi Ritesh,

    Here's a guide on XDS110, maybe this can help with your questions?

    XDS110 Debug Probe User's Guide

    Regards,

    Vince

  • hey Vince i read the user guide that you shared but there is no information as such for XDS 110 as an external debugger , it just has the auxiliary control that can be of some use but rest i don't think is of any use in the scenario i am stuck in , so if you have any knowledge about that please do share and as always thanks for your previous replies they helped a lot in solving many problems i was facing in my project .

    Regards 

    Ritesh Pandit

  • Hi Ritesh,

    Can you re-post your XDS question in a separate E2E post as "XDS110 aux connection as gpio control"?

    That will help you to get the correct expert assigned, as well as help others find your question more easily.

    Regards,

    Vince