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.

TM4C1294NCPDT: USB Device Not recognised after updating the code with the newer TIVAWARE C Series Library "TivaWare_C_Series-2.1.4.178"

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Hi Guys,

I have a working code where my USB is fully functional based on TM4C1294NCPDT uC. the software was built using the old library "TivaWare_C_Series-2.0.1.11577"

Now recently when i ported my software/firmware with he newer library available which is  "TivaWare_C_Series-2.1.4.178" it gave me an hardfault error. Though i researched more on forum, and got the solution to update some parameters and structure defination, which resolved my issue and now there is no hard fault.

But, now the problem is that when i connect my uC USB to my windows PC, i get an error message that the "One of the USB devices attached to this computer has malfunctioned and windows does not recognise it.

This is not an hardware issue. I am sure.

I have a feeling that the update to newer library has introduced this error. Something as my USB descriptor is not working so-forth windows is not able to recognise it.

Please guys suggest me what to do and where to check the resolution in which files and function. There are too much libraries for handling USB. So please support me on this.

I am attaching some its files which is in my project folder.

Thanks in advance.

Best regards

Saurabh

  • Hi Saurabh,
    You are missing the attachments. Will you be able to run the latest TivaWare_C_Series-2.1.4.178 usb examples and how does that come out?
  • Hi Charles,

    I will try the example but i am not sure whether i can debug the actual issue using that as i am new to this USB library.


    I am sharing the Onedrive link for the attachment. Please take a look.

    Link: 1drv.ms/.../s!AtZGdNzwKMvzjDz62-sTE6fy7UZ8


    regards
    Saurabh
  • Hi Guys and Charles,

    I debugged it upto the level where i am getting an popup for USB not recognised.

    After executing this function shown below, i am getting the pop up for USB not recognised.


    void USBOTGSessionRequest(uint32_t ui32Base, bool bStart)
    {
    //
    // Check the arguments.
    //
    ASSERT(ui32Base == USB0_BASE);

    //
    // Start or end the session as directed.
    //
    if(bStart)
    {
    HWREGB(ui32Base + USB_O_DEVCTL) |= USB_DEVCTL_SESSION;
    }
    else
    {
    HWREGB(ui32Base + USB_O_DEVCTL) &= ~USB_DEVCTL_SESSION;
    }
    }


    The argument to this func call is -----> " USBOTGSessionRequest(USB0_BASE, True); "

    This function is in USB.c file

    Any idea why his is happening?

    regards

  • Hi Saurabh,
    Can you reproduce the same problem on a different PC? Can you reinstall the drivers on the Windows side and see if it makes a difference?
  • Hello Saurabh,

    That information might be helpful later on, but before getting that deep into firmware we need to get some baseline understandings of what does and doesn't work to understand whether the problem is a driver, descriptor, or application level issue.

    Here is what we need you to do first and foremost, this will help us help you on this issue:

    1) Inform us of your current Windows Operating system

    2) As Charles suggested, try to install the latest drivers which can be acquired from: http://software-dl.ti.com/tiva-c/SW-TM4C/latest/exports/SW-TM4C-2.1.4.178.PATCH-1.0.zip

    3) As Charles also suggested, try to run one of the TivaWare_C_Series-2.1.4.178 USB examples. When you do this, please tell us which example has been run and what the result of this is.

  • Hi Ralph and Charles,

    Good day!

    Here is my response for some of your questions-

    1. Can you reproduce the same problem on a different PC? Can you reinstall the drivers on the Windows side and see if it makes a difference?
    Ans- I have used the old firmware, written on old library "TivaWare_C_Series-2.0.1.11577" , and then plugged the uC board, the USB device has been recognised and shown on device manager, while when i used the newer firmware generated on newer library "TivaWare_C_Series-2.1.4.178 " it gain shown the issue that windows encountered problem. device is not recognised.
    I have used in other PC running windows 10 but the same issue has been persisted.

    2. Inform us of your current Windows Operating system
    Ans- Windows 7 SP1

    3. As Charles suggested, try to install the latest drivers which can be acquired from: software-dl.ti.com/.../SW-TM4C-2.1.4.178.PATCH-1.0.zip
    Ans- Used but no result. Went to device manager, and provided the driver file to the "Unknown device" under Universal serial bus controller drop-down list, but as it not a valid usb device found by windows, so no drivers are installed by this method.

    4. As Charles also suggested, try to run one of the TivaWare_C_Series-2.1.4.178 USB examples. When you do this, please tell us which example has been run and what the result of this is.
    Ans- I tried importing the "usb-otg-mouse" example to CCSv7.2.00013 from example folder "C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c129x\usb_otg_mouse" but during build, i am getting an error. Log shown below-


    Log-


    **** Clean-only build of configuration Debug for project usb_otg_mouse ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" clean
    DEL /F "usb_otg_mouse.bin" "usb_otg_mouse.out"
    DEL /F "startup_ccs.obj" "tm4c1294ncpdt_startup_ccs.obj" "usb_dev_mouse.obj" "usb_host_mouse.obj" "usb_mouse_structs.obj" "usb_otg_mouse.obj" "drivers\frame.obj" "drivers\kentec320x240x16_ssd2119.obj" "drivers\pinout.obj" "drivers\touch.obj" "utils\uartstdio.obj"
    DEL /F "startup_ccs.d" "tm4c1294ncpdt_startup_ccs.d" "usb_dev_mouse.d" "usb_host_mouse.d" "usb_mouse_structs.d" "usb_otg_mouse.d" "drivers\frame.d" "drivers\kentec320x240x16_ssd2119.d" "drivers\pinout.d" "drivers\touch.d" "utils\uartstdio.d"
    Could Not Find C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c129x\usb_otg_mouse\ccs\Debug\utils\uartstdio.obj
    Could Not Find C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c129x\usb_otg_mouse\ccs\Debug\utils\uartstdio.d
    'Finished clean'
    ' '

    **** Build Finished ****

    **** Build of configuration Debug for project usb_otg_mouse ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" all
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="startup_ccs.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/startup_ccs.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/startup_ccs.c'
    ' '
    'Building file: ../tm4c1294ncpdt_startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="tm4c1294ncpdt_startup_ccs.d" "../tm4c1294ncpdt_startup_ccs.c"
    'Finished building: ../tm4c1294ncpdt_startup_ccs.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_dev_mouse.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="usb_dev_mouse.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_dev_mouse.c"
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_dev_mouse.c", line 313: warning: function "ROM_GPIOPinRead" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_dev_mouse.c", line 472: warning: function "ROM_SysTickPeriodSet" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_dev_mouse.c", line 473: warning: function "ROM_SysTickIntEnable" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_dev_mouse.c", line 474: warning: function "ROM_SysTickEnable" declared implicitly
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_dev_mouse.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_host_mouse.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="usb_host_mouse.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_host_mouse.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_host_mouse.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_mouse_structs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="usb_mouse_structs.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_mouse_structs.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_mouse_structs.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_otg_mouse.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="usb_otg_mouse.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_otg_mouse.c"
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_otg_mouse.c", line 173: warning: function "ROM_SysCtlPeripheralEnable" declared implicitly
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/usb_otg_mouse/usb_otg_mouse.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/frame.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="drivers/frame.d" --obj_directory="drivers" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/frame.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/frame.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/kentec320x240x16_ssd2119.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="drivers/kentec320x240x16_ssd2119.d" --obj_directory="drivers" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/kentec320x240x16_ssd2119.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/kentec320x240x16_ssd2119.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="drivers/pinout.d" --obj_directory="drivers" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c"

    >> Compilation failure
    drivers/subdir_rules.mk:23: recipe for target 'drivers/pinout.obj' failed
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 62: warning: function "ROM_SysCtlPeripheralEnable" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 84: warning: function "ROM_GPIOPinConfigure" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 86: warning: function "ROM_GPIOPinTypeUART" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 103: warning: function "ROM_GPIOPinTypeUSBAnalog" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 104: warning: function "ROM_GPIOPinTypeUSBDigital" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 111: warning: function "ROM_GPIOPinTypeTimer" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 112: warning: function "ROM_GPIOPinTypeGPIOOutput" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 113: warning: function "ROM_GPIOPinWrite" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 118: error: identifier "GPIO_PB6_I2C6SCL" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 119: error: identifier "GPIO_PB7_I2C6SDA" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 120: warning: function "ROM_GPIOPinTypeI2CSCL" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 121: warning: function "ROM_GPIOPinTypeI2C" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 126: warning: function "ROM_GPIOPinTypeGPIOInput" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 151: error: identifier "GPIO_PF5_SSI3XDAT3" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 154: warning: function "ROM_GPIOPinTypeSSI" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 174: error: identifier "GPIO_PF7_LCDDATA02" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 175: error: identifier "GPIO_PJ6_LCDAC" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 176: error: identifier "GPIO_PR0_LCDCP" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 177: error: identifier "GPIO_PR1_LCDFP" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 178: error: identifier "GPIO_PR2_LCDLP" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 179: error: identifier "GPIO_PR3_LCDDATA03" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 180: error: identifier "GPIO_PR4_LCDDATA00" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 181: error: identifier "GPIO_PR5_LCDDATA01" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 182: error: identifier "GPIO_PR6_LCDDATA04" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 183: error: identifier "GPIO_PR7_LCDDATA05" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 184: error: identifier "GPIO_PS4_LCDDATA06" is undefined
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c", line 185: error: identifier "GPIO_PS5_LCDDATA07" is undefined
    15 errors detected in the compilation of "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x/drivers/pinout.c".
    gmake: *** [drivers/pinout.obj] Error 1

    **** Build Finished ****


    Please let me know how to proceed.

    regards
  • Hi,

    One update more-

    I have tried the example given in Board "C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\usb_dev_bulk"

    I got this error though i have included all the necessary files and changed the ARM compiler to the newest version i have in my CCSv7

    Error Log-


    **** Build of configuration Debug for project usb_dev_bulk ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" all
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="startup_ccs.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/startup_ccs.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/startup_ccs.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_bulk_structs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="usb_bulk_structs.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_bulk_structs.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_bulk_structs.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="usb_dev_bulk.d" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk.c"
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk.c", line 418: warning: function "ROM_SysCtlPeripheralEnable" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk.c", line 433: warning: function "ROM_SysTickPeriodSet" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk.c", line 434: warning: function "ROM_SysTickIntEnable" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk.c", line 435: warning: function "ROM_SysTickEnable" declared implicitly
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="drivers/pinout.d" --obj_directory="drivers" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c"
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 71: warning: function "ROM_SysCtlPeripheralEnable" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 90: warning: function "ROM_GPIOPinConfigure" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 92: warning: function "ROM_GPIOPinTypeUART" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 104: warning: function "ROM_GPIOPinTypeUSBAnalog" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 105: warning: function "ROM_GPIOPinTypeUSBDigital" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 107: warning: function "ROM_GPIOPinTypeGPIOInput" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 115: warning: function "ROM_GPIOPinTypeGPIOInput" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 142: warning: function "ROM_GPIOPinTypeGPIOOutput" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 147: warning: function "ROM_GPIOPinWrite" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 157: warning: function "ROM_GPIOPinTypeGPIOInput" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 158: warning: function "ROM_GPIOPinWrite" declared implicitly
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 163: warning: function "ROM_GPIOPinTypeGPIOOutput" declared implicitly
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="utils/uartstdio.d" --obj_directory="utils" "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/utils/ustdlib.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178/inc" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="utils/ustdlib.d" --obj_directory="utils" "C:/ti/TivaWare_C_Series-2.1.4.178/utils/ustdlib.c"
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/utils/ustdlib.c'
    ' '
    'Building target: usb_dev_bulk.out'
    'Invoking: ARM Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_17.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi -z -m"app_TM4C1294NCPDT_ccs.map" --heap_size=0 --stack_size=512 -i"C:/ti/TivaWare_C_Series-2.1.4.178" -i"C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --reread_libs --warn_sections --rom_model -o "usb_dev_bulk.out" "./startup_ccs.obj" "./usb_bulk_structs.obj" "./usb_dev_bulk.obj" "./drivers/pinout.obj" "./utils/uartstdio.obj" "./utils/ustdlib.obj" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk_ccs.cmd" -llibc.a -l"C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/ccs/Debug/driverlib.lib"
    <Linking>
    error: cannot find file "libc.a"
    warning: automatic RTS selection: attempt to automatically link in index
    library "libc.a" failed; file not found
    warning: output section ".data" refers to load symbol "USBBufferEventCallback"
    and hence cannot be compressed; compression "lzss" is ignored
    warning: entry-point symbol "_c_int00" undefined

    undefined first referenced
    symbol in file
    --------- ----------------
    ROM_GPIOPinConfigure ./drivers/pinout.obj
    ROM_GPIOPinTypeGPIOInput ./drivers/pinout.obj
    ROM_GPIOPinTypeGPIOOutput ./drivers/pinout.obj
    ROM_GPIOPinTypeUART ./drivers/pinout.obj
    ROM_GPIOPinTypeUSBAnalog ./drivers/pinout.obj
    ROM_GPIOPinTypeUSBDigital ./drivers/pinout.obj
    ROM_GPIOPinWrite ./drivers/pinout.obj
    ROM_SysCtlPeripheralEnable ./usb_dev_bulk.obj
    ROM_SysTickEnable ./usb_dev_bulk.obj
    ROM_SysTickIntEnable ./usb_dev_bulk.obj
    ROM_SysTickPeriodSet ./usb_dev_bulk.obj
    UARTStdioIntHandler ./startup_ccs.obj
    USB0DeviceIntHandler ./startup_ccs.obj
    USBBufferDataWritten ./usb_dev_bulk.obj
    USBBufferEventCallback ./usb_bulk_structs.obj
    USBBufferFlush ./usb_dev_bulk.obj
    USBBufferInfoGet ./usb_dev_bulk.obj
    USBBufferInit ./usb_dev_bulk.obj
    USBBufferSpaceAvailable ./usb_dev_bulk.obj
    USBDBulkInit ./usb_dev_bulk.obj
    USBDBulkPacketRead ./usb_bulk_structs.obj
    USBDBulkPacketWrite ./usb_bulk_structs.obj
    USBDBulkRxPacketAvailable ./usb_bulk_structs.obj
    USBDBulkTxPacketAvailable ./usb_bulk_structs.obj
    USBDCDFeatureSet ./usb_dev_bulk.obj
    USBStackModeSet ./usb_dev_bulk.obj
    __TI_decompress_lzss
    __TI_decompress_none
    __TI_zero_init
    __aeabi_uidivmod ./utils/uartstdio.obj

    error: unresolved symbols remain
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/usb_dev_bulk/usb_dev_bulk_ccs.cmd", line 70: error:
    undefined symbol "__stack" used in expression
    warning: no suitable entry-point found; setting to 0
    error: errors encountered during linking; "usb_dev_bulk.out" not built

    >> Compilation failure
    makefile:150: recipe for target 'usb_dev_bulk.out' failed
    gmake: *** [usb_dev_bulk.out] Error 1

    **** Build Finished ****
  • Hello Saurabh,

    If that was a clean install of TivaWare those are very strange errors to get. I have had no issues with building it out of the box.

    That said, the issue is that the pinout.c file is not able to access the contents of rom.h properly.

    Can you verify that the CCS Project in addition to having the right ARM compiler (which you indicated you did, great!) that it also is looking for the correct device? Look to see if in Project Properties -> General that the correct TM4C device is linked.

    Also make sure that the link location for rom.h does have the file there (it should be linked to the driverlib location for the project)
  • Hi Ralph ,

    I had missed the preprocessor define to select the correct target in the library that is "TARGET_IS_SNOWFLAKE_RA0"

    Now it had compiled successfully.

    But the example i had used is "C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\usb_stick_demo"

    Though my issue was in USB OTG. I could not find any example given on OTG in the example folder for TM4C1294NCPDT

    Also now i am not getting any windows error reporting popup as the OTG is not init in my uC.

    Please suggest how to proceed next.

  • Hi Ralph and Charles

    Just now i have tried the " C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\usb_dev_keyboard\ccs " example.

    This uses the USB OTG function in the example.

    I got the same error now. Windows pop-up that "windows encountered problem. device is not recognised".

    Looks like there i a serious bug in the OTG library.

    Please let me know how to proceed.
  • Hello Saurabh,

    That example compiled correctly for you I presume?

    If the TivaWare example isn't working, then something is wrong with Windows and how it is interacting with drivers. You should uninstall the old driver software first. Please try and uninstall/delete all Tiva related USB drivers (best done through Device manager, remember to select Delete options when given chance) and then once done install the latest drivers again.

    There is no bug with OTG Library for TivaWare.

    100's of users are using TivaWare OTG examples on Win 7 with no issue with latest drivers, so issue is almost certainly related to older TivaWare drivers affecting the new example+drivers - this issue has been seen many times before, hence suggestion to uninstall/delete old drivers.
  • Hi Ralph ,

    As mentioned by you, i have tired by deleting the old dirvers which was not digitally signed.
    Installed the new driver digitally signed.
    How i did?- First i put my old code into the uC, where USB OTG is running, deleted the drivers from device manager, updated to the new driver.

    Now, i build the exapmle code for "C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\usb_dev_keyboard"
    It got build all good, and then after running it on debug,or free run, it shows the error message that "USB device not recognised"

    Here you can deduce many things-
    1. My hardware is working all good as i have ported the old code, USB got working all good.
    2. By using the example code, i got an error.
    3. Updated the drivers to newer version for digital sign for windows trust list,which is all fine.

    Please let me know where i am getting this trouble.

    Can you provide me any example code on OTG which is for TM4C1294NCPDT and is working properly?if so that will be a great help.

    Please let me know how to proceed.
  • Hello Saurabh,

    The C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\usb_dev_keyboard example worked just fine for me in Windows 7. It enumerates as a "HID Keyboard Device" inside of the "Keyboard" section of Device Manager, and when SW1 or SW2 is pushed it types out "Make the Switch to TI Microcontrollers!" as it is supposed to.

    I also tested usb_host_keyboard using a Logitech K350 keyboard and had no issues either.

    I am awaiting a DK kit to test the usb_otg_mouse example you referenced earlier.
  • Hello Saurabh,

    To follow-up, I tested the usb_otg_mouse example on my DK-TM4C129X on Windows 7 and confirmed it's operation as well.
  • Hi Ralph,

    Thankyou for your efforts in line to my support.

    But sadly i am still facing the issue.
    During this period, i have searched much on this forum for any past issues people have discussed here in regards to my problem, and luckily i have found one thread.

    Actually, the problem i am facing is the exact one which is discussed in this thread. The guy Dave was too facing the same issue and i had tried the same what he has done and suggested by the TI's members in the thread.
    Though his problem was later resolved by the means that he forgot to not to update the include paths of the newer library in his project properties which had caused the issue for device not recognising.
    But here in my case, i have even provided the newer path to the project for include files and libraries, but then too i am facing this issue,.

    Please once check the thread for your reference and to know more to my situation.

    Link: e2e.ti.com/.../1546649
  • Hello Saurabh,

    Thanks for those references.

    That the include paths had some impact on his problem may be good to know, but since changing that for you didn't make a positive impact it may not be related.

    For a baseline, we need to get you back to the point I am at which with the latest TivaWare, on a TI LaunchPad, with no code changes, that the USB is being recognized correctly. Once you have this working, then you can modify the example code to use the same APIs you need for your project and see if they work as well.

    When you worked with the example "C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\usb_dev_keyboard", did you load this example into a TI LaunchPad?

    If you load that example to a TI LaunchPad and try and connect it to a different Windows 7 machine, can you install the correct drivers for the device to show up?
  • Hi Ralph,

    I have just now tried the example code of development board ek-tm4c1294xl on my TI Connected Launchpad tm4c1294xl.

    I have used the ek-tm4c1294xl\usb_dev_cserial example and the result is i am able to create a two com port which is "TivaWare USB serial command port(COM17)" and "TivaWare USB serial port(COM16)" under the windows device manager.


    Now when i am porting the example code to my product ,it shows the error which i am stuck since the first post.

    Can you rectify for me that should i be worried in the software part only for USB or there could also be the issue with the USB hardware connections too? Please suggest me.

    Can you share me the reference schematic diag. for USB hardware connection with the TM4C1294NCPDT? as with the old library package it was working, so can the newer package can effect the old hardware connection too, probably by using the GPIOs newer implementation under USB? would that be the considered for debugging the issue?

    Please suggest me.
  • Hello Saurabh,

    Thank you for trying with the LaunchPad and TivaWare example.This would indicate the issue is not Windows driver related then and that you have the right drivers. Let's continue to try and narrow this issue down.

    Mr.Saurabh Mishra said:
    Can you rectify for me that should i be worried in the software part only for USB or there could also be the issue with the USB hardware connections too? Please suggest me.

    If the hardware worked in the past with a prior TivaWare, I would be surprised that it fails with a newer one. Never say never, but I think software is more likely to be the issue.

    If you can post your source code for initializing the USB interface including SysCtl API's (clk, peripheral enable etc.) and GPIO configuration API's, that would be helpful.

    Also what clock speed are you running your MCU at?

    You can check the SW-TM4C-RLN-2.1.4.178.pdf in the TivaWare 'docs' folder to see changes made over the revisions and see if any API's you are using may be affected.

    Mr.Saurabh Mishra said:
    Can you share me the reference schematic diag. for USB hardware connection with the TM4C1294NCPDT?

    The TM4C1294 LaunchPad schematic can be viewed here starting on Page 31: http://www.ti.com/lit/ug/spmu365c/spmu365c.pdf

    Furthermore, we have Design Guidelines which include a section on USB (Section 4.3): http://www.ti.com/lit/an/spma056/spma056.pdf

  • Hi Ralph,

    My processor is running at 120 MHz.

    I am sharing you the link of my source code.

    PFA the link.

    Link: 1drv.ms/.../s!AtZGdNzwKMvznFO1pnf1vdIn51rd

    I have noticed that the developer who had worked past 2 back also tried to port the library from "TivaWare_C_Series-2.0.1.11577" but had faced the same issue in the subsequent updates from the libraries onward to that time.

    Please suggest me the resolution.

  • Hello Saurabh,

    I was not able to get to your attachment, the TI security policy is blocking the website from being accessed.

    Can you please attach the file directly on E2E via these instructions: e2e.ti.com/.../148.4-5-attaching-a-file
  • Hi Ralph ,

    Yes i tried to upload to forum, but due to my company internet security policy, i can not upload any attachments.

    I am sharing you another link, Dropbox

    Please try to get the files from there.

    Let me know if you face any issue.

    Link: www.dropbox.com/.../USB_TI.zip

  • Hello Saurabh,

    The code you provided is difficult to review due to complexity of it as it can be hard to follow the order in which API's are called just scrolling through the files. From what I could follow though, the only part that I am wondering about is there the API for USBOTGInit() is, I couldn't find that referenced in any of the code you shared.

    I didn't see anything glaringly wrong with configuration so it is likely an application specific issue.

    Have you reviewed the change logs for TivaWare to see if any of the API's you are using have been changed? That would be the first place to look into where some error may occur.

    As far as descriptors go (which you brought up earlier), you could test moving some of your USB configuration and the descriptor aspects to the working example code you have, and see what happens that way. If you can replicate the issue on a TI EVM, then you can provide the full CCS example project and I can investigate further from there.