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.

CCS/CCSTUDIO: CSL CDC USB: windows 7 driver

Part Number: CCSTUDIO

Tool/software: Code Composer Studio

Hi,

I'm trying to let CSL_USB_CdcExample_Out work on a C5517 device.

I simply open the CSL_USB_CdcExample_Out and change the C5517 define in csl_general.

When I let the program run, I get a USB Code 10 Error on my computer. I installed the device driver using the .inf file provided with the csl library example and I didn't change it!

This is what I see from the control panel:

 

I tried disintalling and installing it back, resetting the computer and change cable/usb port both ina 32bit and 64bit windows 7 system .

Debugging the enumeration I notice that the last packet sent by the host is a SET CONFIGURATION: after that nothing else happen.

Here is the log:

Is this error up to windows?

Are there .inf files updates?

Any troubleshooting about this?

Thank you

Stefano

  • Hi Stefano,

    Have you tried to use the TeraTerm to do the following test?

    Ming

    TEST PROCEDURE:

    • Connect the C5517 EVM with a PC via USB cable
    • Open the CCS and connect the target (C5517 EVM)
    • Open, build and load the USB program to the target
    • Set the PLL frequency to 100MHz
    • Run the program loaded on to the target
    • Install the inf file for the USB device (Only when running for first time)
    • After the proper USB enumeration, check the Control Panel–>System–>Hardware–> Device Manager–>Ports (COM & LPT) looking for C5515_CDC_ACM_device. A COM port will be assigned to the CDC ACM device, says COM3
    • Run the TeraTerm. Create a new connection to COM3
    • Configure the new connection to the desired baud rate, parity, number of bits etc.
    • The test program is acting as an echo device, whatever you input in the TeraTerm, it will be echo them back. The user input to the TeraTerm will be sent to the C5515 EVM via CSL_CDC_BULK_OUT_EP (EP2 OUT) and the data output from C5515 EVM to the will be sent to TeraTerm via USB CSL_CDC_BULK_IN_EP (EP3 IN). You can change the actual port number in csl_cdc.h

    TEST RESULT:

    • USB CDC ACM device should be detected by the host PC and should be accessible through a terminal application (TeraTerm)
    • Data typed in using keyborad and data displayed on the terminal window should match

  • Hi Ming,

    I did try the test procedure you showed me, but since the enumeration is not properly concluded when I open TeraTerm the COM listed on the "Device Manager" ports is not shown, so I can't open the COM.

    The default .inf file provided by the csl example library is ment for a C5515 device: how should I modify the .inf file if I use a C5517 device? 

    Thank you

    Stefano

  • As a new input on my issue, I'm able to corrtectly let the CSL_USB_HidExample work, but still same "Error code 10" with the USB CDC test.
    I'm assuming there is something that goes wrong with the CDC configuration. I tried on a different computer with no results.

    Any suggestion about this?

    Thank you
    Stefano
  • Another input I want to add that I omitted on the description of my issue is that I need to run it on USB Full Speed: to do so I used the CDC_OpenFullspeed function, modifying the example code as shown here:

    // Create a CDC handle
    //status = CDC_Open(&CDC_AppHandle, &usbConfig);
    status = CDC_OpenFullspeed(&CDC_AppHandle, &usbConfig);

    Please give me an update, this issue is urgent and we need to understand how to use the USB.

    Thank you

    Stefano