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.

USB Bulk device application not working on TMDXLCDK138

Other Parts Discussed in Thread: SW-USB-WINDRIVERS, OMAPL138

Hello,

(First, I have looked at similar posts before [partially answered, or inconclusive most if not all] and obviously have exhausted ideas to make it work.)

Problem: I am not able to run the application for the Bulk device example in the Starterware_USB wiki side (Running the Example Application under Buld Device Class section in: processors.wiki.ti.com/.../StarterWare_USB

I downloaded the application SW-USB-WIN and installed it. I downloaded this from: www.ti.com/.../sw-usb-win

I downloaded the drivers SW-USB-WINDRIVERS and unzipped them. From: www.ti.com/.../sw-usb-windrivers. These include several .inf files and security catalog files. Including a usb_dev_bulk.inf file within all those files.

I imported the usb_dev_bulk project from the build directory in here: C:\ti\C6748_StarterWare_1_20_04_01\build\c674x\cgt_ccs\c6748\lcdkC6748\usb_dev_bulk

Built it and downloaded it to the target successfully and ran it.

Connected the TMDXLCDK138 to the PC using a USB cable. On the TMDXLCDK138 side the USB connector I used was the USB OTG (connector J2).

PC running Windows XP SP3 detects device and ask for driver. I point it to the folder where I unzipped all the .inf and catalog files. It seemed to have installed driver successfully. Then it says USB device not recognized. So I run the usb_bulk_example.exe application and it complains with error stating that no device is connected, go connect device and try again.

I have tried this on four different machines. Windows 8.1, Windows 7, Windows XP, and Windows Vista, and none recognize the device (board running usb_dev_bulk.out). They all detect it and finally say " USB DEVICE NOT RECOGNIZED", unknown device. So I am not able to run the example. I have tried uninstalling it and updating the driver, restrating several times etc, with no luck, It is always unrecognized.

On Windows 7 I tried running the hdwwiz and installed the Bullk Device by pointing to the Windows driver folder provided by TI (I took this from a previous post from Norman Wong). It does install it, but complains about Code 10, not being able to start it (this without the board connected or not).

1) I would like to have this one working to see the usb_deb_bulk in action, any hints or guidelines are highly appreciated.

2) It seems, (I may be wrong) I have to run this application demo for the USB in bulk mode in the C6748 using an old Windows XP or Vista machine (which I have and it hasn't work for me anyway). Am I using something TI does not support any more?, Is there a better way to have the USB inside the C6748 running using the C6748?. I need the maximum speed I can get out of USB for my product (480Mbps), I cannot afford using the CDC (115200 bps) or the external FTDI controller driven by UART (12 Mbps), Why TI is not updating this. It seems it happened 6 years ago ...

3) Is there an application demo for usb bulk mode TI can provide for more recent versions of Windows?, say Windows 8.1?.

Thank you,

  • Hi Carlos,

    No worries. I have personally run this program (usb_dev_bulk) several times with Windows 7. It worked flawlessly every time.

    Just post me the screenshot of the messages you received on the UART terminal ( i.e., tera term ) after you ran the dev_bulk example on the target.
  • Hi Shankari, thank you.

    Just to confirm, I have the TMDXLCDK138 (USB OTG connector J2) ------- usb cable ------- PC setup. I have not been able to transfer data. I understand the usb_bulk_example.exe provided (once it's working) will send some characters I type to the board, the firmware will change the case of the characters and send them back to the PC where I will be able to see them with their case changed. I thought all I needed was the usb_bulk_example.exe application for this. Again, as described in the Starterware USB site on the Bulk device transfer section. I am not sure what role the UART or the Tera Term plays in all this, perhaps that's my missing piece?. In any case, this below hopefully explains more of what I am doing.

    Below I am attaching some of the screenshots I see, hopefully it makes sense. I tried to put them in some logical order.

  • Hi Carlos,

    Good and superb. You are almost there.

    In your step number 7, right click on the "Generic bulk device" , click "update driver software and locate to "~\SW-USB-windrivers-6459\windows_drivers" in your host PC.

    You have to loacte where the file, "usb_dev_bulk.inf" is available. This will install the appropriate driver.

    How to run the USB device bulk?
    ===============================

    1. Connect a VGA monitor to the OMAPl138 LCDK board.

    2. Run the USB dev bulk example on OMAPL138 LCDK. ( Make sure the Jumper next to J2 is removed for device mode operation)

    3. Download the "SW-USB-win-10636.msi" and install it. This wil provide the windows device bulk application for the host side.

    4. Download "SW-USB-windrivers-6459.zip". This will have drivers. Download link : www.ti.com/.../sw-usb-windrivers

    5. Open device manager and install the driver for "Generic bulk device".

    6. open and run the usb bulk example.exe and send the data by typing the strings in the host PC.

  • Hello Shankari, thank you .

    I did not have to do all of what you suggested at the beginning of your previous (last) message, mostly because I already did it before.

    This time I did this:

    1) I downloaded the same firmware to the target and ran it (using CC6 v6.x),

    2) I plugged the board (LCDK) to the PC USB port running Windows 7, the PC (for some reason) this time installed the driver successfully (I did not have to point the PC to any location for the drivers, it must have remembered where they were from my previous attempts). It installed Generic Bulk Device successfully this time, and I am able to see it on the control panel fine with no errors or exclamation sign. Checking its properties on Control panel it states the device is working properly, which is always a good sign.

    3) I connected the Monitor via VGA and, could see the same sort of screen you have on your image above with the Host Connected, Tx bytes, Rx bytes. messages...

    4) I ran usb_bulk_example.exe. It ran successfully this time, I am able to type a string in the host pc Windows 7 on the cmd prompt provided by usb_bulk_example.exe, I hit enter and see the number of Tx and Rx bytes transmitted and received on the monitor connected as you pointed in your message. The message back from the LCDK has changed cases, which is expected,

    Thanks again,

    Carlos

  • Hi,

    I did other unrelated work using the LCDK, then I went back and downloaded the usb_dev application to the LCDK again, plug the board, and now Windows does not recognize the board and can't communicate with it using usb_deb_example.exe again. It is shown as Unknown device in the Device Manager... (?). I reboot the PC, but still wouldn't recognize it. Very strange.

    Carlos

  • Sorry for the streams of messages, but I think I have a conflict with my emulator. I am using the XDS100v2. It acts strange sometimes, perhaps I need to get the next level up in emulator, I understand this one is the cheapest and may not be working well all the time perhaps?. In any case. I reset the LCDK (remove power and put power back), then build and download to the OMAP again, plug the USB to PC and now it recognizes it back again. I think I may need to reset the board every time for some unknown reason.

    I have found that when I power off the LCDK and bring it back on, my emulator has problems connecting to the target, It eventually does, but haven't figure out the right way to avoid the problem. Sometimes it says the processor is held in reset, sometimes it can't connect to the target etc. So I find myself resetting, closing CCS and bring it back on, sometimes it works sometimes it doesn't, if you know the reason for this, or have a recommendation on how to power down the board properly, please let me know.

    Thanks
  • Hi carlos,

    Congrats, that's good news. :-)

    I am glad that you are able to fix the "General bulk device" driver issue and transmit the bytes from host PC to LCDK.

    The emulator issue which you posted is a common one. It can be resolved by disconnecting the power ( LCDK board power), emulator cables ( both from the host PC and from the LCDK board ) and reconnecting again.

    (By the way, I use DI XDS510 USB emulator)
    Yes, you did most of the steps corectly. The reason for posting all the steps is for the reference to the future community members too.


    All the best,
    Shankari.
  • Shankari,

    Understood. Your post helped me understand the application better,

    Regards and thank you again for your help, 

    Carlos

  • Hi Carlos,

    :-). Good Luck.

    You are welcome.