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.

TMS320F28379D: usb_host_msc example in C2000Ware serial communication issues

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

I am having issues with serial communication in the example program usb_host_msc provided in C2000Ware.  I am using a TI TMS320F28379D Control Card.

See the attached pdf document for detailed explanation of problem.

Thanks.

Eric

PuTTY_and_USB_COM_Port_Configuration_Help.pdf

  • Hi Eric,

    Can you try with the "View-> Terminal" option within CCS? You can open a serial communication here with 115200 as the baud rate and try the same functionality.

    Let me know which version of C2000Ware that are you using? The "usb_host_msc" example uses the "ReadLine" function in "usb_ex7_host_msc.c" file for processing the serial commands. Please try adding a breakpoint in this function to check if it is receiving the commands

    Best Regards

    Siddharth

     

  • Hi Siddharth,

    Thanks for the response.

    I am using C2000Ware_1_00_06_00.  Would upgrading to latest version resolve the issue?

    I am away from the office for a few days, but when I return I will try your suggestion about "View-> Terminal" option within CCS.  I had already tried setting a breakpoint in ReadLine function and it was not receiving any characters from PuTTY terminal.  I'll try breakpoint when using CCS View-> Terminal.

    Thanks.

    Eric

  • Eric,

    Recommend to try with the latest version of C2000Ware (3.01.00.00).

    Let me know your observations once you are back in office.

    Best Regards

    Siddharth

  • I updated C2000Ware to version 3.01.00.00.  I also update C2000 compiler (via the CCS 'Check for Updates') to version 18.1.8.LTS.  I then tried to import the example Driverlib 'usb_ex7_host_msc' found in 'C:\ti\c2000\C2000Ware_3_01_00_00\driverlib\f2837xd\examples', but I am not able to import it.  The message (shown below) indicates "Compiler version '18.12.1.LTS' is not currently installed.  But I have the most up to date compiler version installed (18.1.8.LTS) according to CCS 'Check for Updates'.  I don't understand the reference to compiler version 18.12.1 vs. 18.1.8.  Please advise.

    Eric

  • Eric,

    Request you to download the compiler from  version 18.12.5.LTS.  You can install it in your <CCSInstallDir>/tools/compiler folder.

    Best Regards

    Siddharth

  • Ok.  Now I have C2000Ware_3_01_00_00 installed and compiler v20.2.1.LTS installed.  I set a breakpoint in the function ReadLine in the file usb_ex7_host_msc.c on the line of code containing SC_readCharBlockingNonFIFO.  The breakpoint is never reached when I enter characters at the Terminal.  I tried CCS Terminal and PuTTY Terminal; serial port COM4, 115200, No Parity, 1 Stop Bit.  Note that the Terminal program does receive characters from the usb_ex7_host_msc.  For more details, see the pdf file I attached to my original post.  It seems that the ControlCard's FTDI serial port is not relaying the characters to the TMS320F28379D device.  Any suggestions?

     
    // Loop while there are characters that have been received from the SCI.
    //
    while(SCI_isDataAvailableNonFIFO(SCIA_BASE))
    {
        //
        // Read the next character from the SCI.
        //
        ui8Char = SCI_readCharBlockingNonFIFO(SCIA_BASE);

    Thanks for your help.

    Eric

  • I found the problem.  There is a dual selector-switch on the TMS320F28379D Control Card labeled 'A:SW1' and it contains two switches.  Switch '1' was in the 'ON' position and Switch '2' was in the 'OFF' position.  Switch '2' needs to be in the 'ON' position in order to connect the MCU's pin-28 (SCI-RX) to the FTDI chip.  I changed Switch '2' to the 'ON' position, and now the application recognizes keystrokes at the Terminal.

    Thanks.

    Eric