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.

Trouble getting USB to work on TM4C1294

Other Parts Discussed in Thread: TM4C1294NCPDT, UNIFLASH, EK-TM4C1294XL

Hi all,

I'm bringing up a custom board with the TM4C1294NCPDT chip.  So far, I can get it to blink an LED, and run the enet_weather and enet_lwip example programs, so those parts are working.

I'm a bit stuck on the USB side.  When I try to run usb_dev_bulk, it displays the "Configuring USB..." and "Waiting for host..." messages, then gets stuck.

I'm not sure if it's a circuit error or a driver issue.  Here's what I know about the driver:

- When I erase the flash memory using Uniflash, the device appears in Device Manager as a "Stellaris Device Firmware Upgrade".

- As soon as I load firmware onto it, however, the device disappears from the Device Manager.  No new devices show up.

- I am unable to install the usb_dev_cserial_win2k.inf driver; I get the error "The INF file you selected does not support this method of installation".  I am using Windows 7.  I changed my settings to "Disable Driver Enforcement", but still have that error.

- Other people say that when they run usb_dev_bulk, Windows pops up a notification asking them to install a new driver.  Mine does not.

Is there anything I could do to further test if this is a driver issue?  Or does it seem like it is probably a circuit/electrical issue given the above?

Thank you very much.

  • Hello Yoo,

    for the usb_dev_bulk example you would need to use usb_dev_bulk.inf file. Also to run the example you need to download the USB Bulk Example which can be downloaded from

    http://www.ti.com/tool/sw-tm4c

    The name of the download on the above web page is SW-TM4C-USB-WIN

    Regards
    Amit
  • Hi Amit,

    Thank you for your quick reply. I have tried all the .inf files in the folder, and none of them will install. I get the same error of "The INF file you selected does not support this method of installation".

    I did download and install the SW-TM4C-2.1.1.71.exe TivaWare for Tiva C Series file from the link you posted. I have been trying to run the USB dev bulk example from that folder. I am running it using Code Composer Studio 6.1.0.

    Would you have any further suggestions as to what could be going wrong?

    thank you,
    Yoo-Yoo
  • Hello Yoo-Yoo,

    Since it is a custom board

    1. Can you confirm the Crystal Frequency being used?
    2. Can you confirm if the RBIAS pin is connected to GND via a 4.87K resistor?

    Regards
    Amit
  • Hi Amit,

    We have two crystals - one at 25MHz and one at 32.768kHz.

    Yes, there is an RBIAS resistor between pin 59 and ground.

    The Ethernet examples work, the blinky LED example works, I can read data off UART0.  Only the USB examples do not work.  They get stuck at "Waiting for host..."

    Is there anything else that could be going wrong?

    thank you

  • Hello Yoo,

    OK, so did the example work on the TM4C129 LaunchPad? I want to make sure that it is not a board issue and only an application issue. Could you share the code as well?

    Regards
    Amit
  • Hi Amit,
    We have not tested on the TM4C129 LaunchPad, as we do not have one.
    But we are using the example code downloaded from the link that you posted in a previous reply. We have not modified it in any way.
    I tested the enet_lwip, enet_weather, hello, and blinky example applications, and those all work.

    The usb_dev_bulk, and usb_dev_cserial examples do not work.

    I do not think it is an application issue, because we are just using the example code given by TI.

    So I think it is either a board issue or a driver issue. If I erase the memory on the board using Uniflash, my computer will recognize it as a device named "Stellaris Device Firmware Upgrade". If I program it at all, though, it no longer shows up as a device. This makes me think it is a driver issue, but I am unable to install the drivers (please see above).

    What do you think it could be?

    thank you
  • Hello Yoo

    Yes, it may be a driver issue. When you install the application, what does the windows device manager show? A picture of the device manager would be useful, especially if there is a unknown device which shows up

    Regards
    Amit
  • Hi Amit,

    Here are screenshots of the Device Manager in four scenarios:

    (1) When the board is not powered on or connected to the computer in any way

    (2) When the board is connected and I have just erased the flash memory using Uniflash.  Notice that a new device called "Stellaris Device Firmware Upgrade" appears.

    (3) When the board is connected and I am running the "usb_dev_bulk" example in debug mode through Code Composer Studio.

    (4) When the board is connected and I am running the "usb_dev_cserial" example in debug mode through Code Composer Studio.

    It doesn't look like any new device appears when running the program. There is an "Unknown Device", but that exists even if I do not plug the board in.  When I run the example code, the device manager does not auto-refresh, and Windows does not ask me to install any drivers.  I am using a TI XDS100v3 to program the device.

    Any ideas?

    thank you

  • Hello Yoo,

    1. Since the DFU functions it does not seem to be an issue with the USB signals. Did you try running "Scan for HW changes" in the device manager?
    2. Are you sure you have taken the examples from ek-tm4c1294xl and not from dk-tm4c129x?
    3. Check if the Main Oscillator is oscillating with 25MHz frequency.

    Regards
    Amit
  • Hi Amit,

    Thanks for the suggestions. I tried each of them:

    1. My computer tries to reinstall the Unknown device and Bluetooth Peripheral Devices. No new device appears. If I try to direct the computer to update the "Unknown Device" driver by searching the folder with all the corresponding .inf files, it doesn't find anything.
    2. I re-imported the USB examples, this time making sure they were from the ek-tm4c1294xl folder. Same result.
    3. With an oscilloscope, the Main Oscillator has a period of 40ns, aka yes, it is oscillating with 25MHz.

    The chip is a TM4C1294NCPDT13 (silicon revision #3), if that helps?

    thank you
  • Hello Yoo,

    All steps run perfectly, so it seems that the issue is not one of the suspected issues. I think it is time to import the example in an IDE, run it and debug the same.

    Regards
    Amit