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: SCI example "sci_echoback_cpu01" how to send data to the DSP?

Part Number: TMS320F28377D
Other Parts Discussed in Thread: TEST2

Hi there,

I am trying to learn how the SCI communication works on the F28377D.  I am running the example project "sci_echoback_cpu01."

I have configured PuTTY to communicate through the DSP via the COM5 and I run the project. Now the interface in PuTTY is showing the following:

it is waiting from some data. What I would like to understand is how to send these data from the computer to the DSP (?). What hardware do I need to do so? From the sample code:

it looks like I need to connect a DB9 cable from my computer and to GPIO28 and 29. I am not clear on how to proceed after I made this connection; i.e. how do I send the data to the DSP? 

Thanks in advance for your kind assistance,

Leo

 

 

  • Hi Leonardo,

    As you are seeing the data on the console the connections are already in place through the USB connected which emulates COM port.
    What data do you enter in the console when you get this message?

    Try to enter any character and check if the same character is printed back.

    Thanks,
    Katta
  • Hi Katta,

    Thanks for your answer. The example is not working yet.

    I connected the 28377D to the computer using the XDS100 debug probe.  In the windows device manager this seems to be connected to COM6

    Also, I have physically connected 2 wires between GPIO 28, 29 and the PIN 2, T of a DB9 cable, which is connected to the RS232 port of my computer. I have followed the instructions on the demo program:

    I have configured PuTTY as follow (these are the two only windows I have changed):

    I click on open in Putty and then I Run the CCS echoback example and this is what I see (indicating that somehow there is a connection between the PuTTY Terminal and the DSP -I think-)

    The issue is that I don't know how to enter data in the PuTTY terminal. If I press any key in the keyboard nothing happens in the PuTTY terminal; copying and paste with Ctrl+C and Ctrl+V does not help either.

    When I use this additional setting under "Terminal -> Keyboard":

    then I can type words (eg. 0xE040, test1, test2) in the PuTTY terminal and when I press Enter it just goes to a new text line, like if nothing happens...

    Am I supposed to see something different in the terminal? How can I understand when this example is working propoerly?

    Thank you for your help.

    Leo

  • Hi Leo,

    You mentioned "If I press any key in the keyboard nothing happens in the PuTTY terminal; copying and paste with Ctrl+C and Ctrl+V does not help either."

    In your first post, you have mentioned you could see the ouput "You Sent:". Here which character did you enter?
    Can you try entering just one character (for ex:- 'K') in keyboard and check if you could see the output?

    In all the steps you have provided in the previous post "Terminal -> Keyboard" step is not required.

    In CCS, there is an option to open terminal to configure the COM port. Could you please check with CCS terminal?
    Is loopback example working on this board?

    Thanks,
    Katta
  • HI Katta,

    thanks for your follow up. In my first post I was connecting to a different computer, without any RX TX connection between to GPIO 28 and 29 of the DSP and the the computer. In that case the PuTTY terminal was displaying  "You Sent:   ", but in reality I was not sending anything, because I had no serial connection between the computer and the DSP.

    In the second and latter post, I finally connected the GPIO 28, 29 to the TX and RX pins of the DB9 socket of my computer. Now in the latter case the PuTTY terminal was no longer showing the "You Sent:   " message, and instead was giving me the problems that I described in my latter post.

    In your answer, do you mean that it is not necessary to type a message from the actual keyboard of the PC? So where do I send the message to the DSP from? from the CCS terminal? i.e. do I type directly in the CCS terminal rather than the PuTTy terminal?

    Thanks again

    Leo

  • Hi Leo,

    Are you using a control card of F28377D? Then the same USB connected acts emulates the COM port. You don't need DB9 socket.
    Can you just connect the USB cable like you have used in other PC and try again?

    You can either use Putty or CCS terminal. You can direclty type in the console.

    Q: Do you mean that it is not necessary to type a message from the actual keyboard of the PC? So where do I send the message to the DSP from?
    A: No. The message has to be typed through actual keyboard in the terminal.

    Q: Do I type directly in the CCS terminal rather than the PuTTy terminal?
    A: When you use CCS terminal, you can type directly in terminal. Either use Putty or CCS terminal.

    Thanks,
    Katta
  • Hi Katta,

    Thanks for your follow up. I have gone back to the original computer, and now I am only connected to the TMS320F2837D with the USB as you have suggested, i.e. no serial connection between the F28377D GPIO 28, 29 and the computer DB9 port RX and TX.

    I run the "sci_echoback_cpu01" example with the CCS terminal, but once again when I type anything on my keyboard the terminal remains idle, and nothing happens as per the picture below (ps, not sure if it matters, I am using  CCS Version: 7.2.0.00013 ).

    Appreciate your help, thanks.

    Leo

  • Dear Katta,

    Thanks for your help. All I had to do was to set the Switch 2 belonging to A:SW1 to ON in order to enable the communication. All working now!

    - A:SW1: both set to ON

    - Settings in CCS terminal

    - Result: the character I type is displayed back, as intended.

    Thanks 

    Leo