Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

Send from DSP to PC, is it possible

Hi,

I would want to know if it is possible to write something from DSP to PC through the USB link between XDS100v1 and computer.

In fact when I link the DSP to the computer, a new serial port was open (the 6 for example). I have a software which can read and do some operations whith serial data received. But I don't know if it is possible to me to write on the serial port from my dsp with CCSv5 and I don't know how...? Have you got an idea ? Thank you to help me

  • Hi!

    Let's say you send something to the SCI-port of MCU. But the XDS-driver supports a particular protocol. On the other hand, how are you going to deal with this driver from your PC application? This driver emulates COM-port only. In fact USB-device works. You need API for communication with this driver. I don't think that TI will provide you this API. In my opinion the best way is communication via SCI of MCU and standard COM-port of PC.

    Regards,

    Igor

  • Hi,

    Thank you for your answer. In fact what you can say is in your opinion we can't use the serial COM port 6 for example as a RS232 classic port ? In fact, like it is present on the joined picture, at the left we can see an arduino and at the right the xds100, there is the same port which can link arduino to computer and dsp to computer. The fact that the linker seems to be the same has made me thinking of the possibility to receive data on my computer with a classic rs232.

    More precisely I have a soft on my computer which can communicate with this arduino. The first step is now to replace the arduino by the dsp and after put all my soft of my computer on the dsp. So what you say to me is that you think it is impossible to do the same as Arduino ? And if I clearly understand , if I wanted to use an rs232 communication between them, I would transfer data of my DSP through a SCI which is linked itself to a COM-port of my computer? The basic link (J2 port) which is used to put soft from ccs to dsp is only available in one sense and for the other I need an API to deal with the protocol of the com which is more complex than a simple RS232 ?

    It's just to have a confirmation if I have clearly understood because this says that this dsp and kit is less friendly using than an arduino which its basic port...So I am wondering what can offer this kit more than a simulator for a newbie ? Thank you for your answer I find this community really cool and good. I discover the world of DSP with happiness. Thank you.

  • Hi Cedric!

    If none of the TI employees pay attention to your post I would recommend you consult with your question directly through the site of TI (or directly to asktexas@ti.com). But my opinion I voiced: without knowledge of the XDS-driver program interface I don't see the possibility of above communication development.

    Regards,

    Igor

  • The XDS100 devices have a PC to USB connection, and from there a JTAG or UART connection to the MCU.

    So you can do MCU - UART - XDS100 - USB

    If you have any hardware PCB that includes a serial transceiver you can also go directly from the MCU - UART - PC, assuming you have a UART connector on your PC.

    CodeSkin offers several free PC based UART tools for diagnostics and flash programming, and if they don't already offer a version that works through XDS100 I don't see how it would take much effort.

     

  • Ok thank you Igor and Chris. But I don't know how can I access to UART from MCU  and after UART - XDS100 / PC technically ? And every protocol has to be implemented ? It seems to be so complex for an intermediate development phasis and on top of that there are a lot of steps from beginning to end to be a quick (baudrate 115200 from MCU to USB) and safe transmission, no?

  • The USB to UART connection happens automatically with the correct hardware (like our controlCARDs with on-board XDS100 or connected to a baseboard with the XDS100).

    But yes, you do need a serial protocol SW running on the MCU and something (even if just a hyperterminal) on the PC.

    Most of the included GUIs use a serial protocol, which means there is a serial kernel running on the MCU, typically in a software framework which you can re-use (unless the GUI is built with Crosshairs, there the serial kernel is in a library which you cannot access).

     

  • Thank you for your explanation you are great !! Sorry for my stupid questions but it is really good to have answers from some super-specialists whithout disdain for new user like me. Really, I thank you for that .Good evening.

  • Hello Chris!

    I have some confusion about the operation of the driver XDS100. I work with TMDSPLCKIT-V3 & V2. My questions are following:

    1 System device manager of my PC (WinXP SP2) displays "USB serial COM#" only when Kit at power-on state. Is it right and why?

    2 Can I apply Win32API ( for example CreateFile(COM#,........) ) for serial connection with Kit via XDS100-driver?

    Thanks,

    Regards,

    Igor 

  • Igor,

    1) Within any of the PLC software downloads there should be a schematic for the baseboard.  According to it, the power taken from the USB doesn't power the board or power the FTDI.  In fact, it isn't really used for anything.  All power seems to be taken from the VPLC 12-15VDC barrel connector.

    2) I am not familiar with the software.  However, the key thing is that the C2000 device will have to know how the data will be packet-ized, the baud rate, etc and then be programmed accordingly.  From my understanding, the PLC library already utilizes a defined serial connection for the GUI/blackbox communication to a host.  Therefore, I doubt you can use the serial communication port generically and use the PLC software at the same time. 

    (if you're not using the PLC libraries, you can do whatever you want)


    Thank you,
    Brett

  • Hello Brett!

    Many thanks. Now everything is clear.

    Regards,

    Igor