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.

Successful compilation of USB Mouse for TivaWare

Hello-

Has anyone gotten a USB mouse to compile for the TivaWare libraries?  I am using the TM4C123G LaunchPad board and following the example given for a USB Mouse in the TivaWare USB Library User Guide with CCS 5.4.

My current problem is that I get error #35 'unknown compiler' when compiling usblib.h. The problem is that symbol 'ccs' is not being defined.  I've already seen a forum post where a TI employee gives directions on how to make sure this is done properly, however, his directions are contained in an image that I am not allowed to open (I get a website error saying I don't have permissions).  If I try to manually insert code to define this symbol, I then generate a host of other errors due to different symbols being redefined.  Can anyone help me with the fix for this?  And if there are any further 'gotchas' with trying to do USB under TivaWare, please let me know.  I've found a bunch of example StellarisWare USB projects, but I run into similar issues trying to port them over to TivaWare.

  • Hi,

       Go to Project -> properties -> C/C++ General -> Patch and Symbols and add ccs.

    -kel

  • Hello-

    I don't see any such option as you describe when I go go the project properties.  I do see Properties->Build->ARM Compiler->Advanced Options->Predefined Symbols.  If I add 'ccs' here, then I get the host of errors I described before because __attribute__ is attempting to be defined multiple times.

    I'm also trying to get the USB Bulk Device example to compile following the examples from the TivaWare workshop manual, but here, I get errors that target_config.ccxml has the wrong part information even though I have the correct part set in the project properties.

    I also have a typo in my original post, I am using version 5.0.4, not 5.4.

  • CHRISTOPHER THERIAULT said:
    I don't see any such option as you describe when I go go the project properties.  I do see Properties->Build->ARM Compiler->Advanced Options->Predefined Symbols.  If I add 'ccs' here, then I get the host of errors I described before because __attribute__ is attempting to be defined multiple times.

    You, can alternatively ask this at CCS forum. You, can also do a search in the forum for similar post.

    CHRISTOPHER THERIAULT said:
    I'm also trying to get the USB Bulk Device example to compile following the examples from the TivaWare workshop manual, but here, I get errors that target_config.ccxml has the wrong part information even though I have the correct part set in the project properties.

    I just compiled mine without errors using Keil Uvision. Do you have the most recent Tivaware for your Launchpad? Post this "part information" here.

    -kel

  • You're right about having the wrong version of TivaWare, when I reinstall the latest version from the website, the bulk device example compiles fine.  I can try to modify that example to turn it into a USB mouse, but I'd still like to know why I can't make a project from scratch without getting all these errors.

    It's not clear to me why I even have to define the compiler manually, since I thought that was automated when I select the tool settings under the project properties General tab.

  • CHRISTOPHER THERIAULT said:

     I can try to modify that example to turn it into a USB mouse, but I'd still like to know why I can't make a project from scratch without getting all these errors.

    It's not clear to me why I even have to define the compiler manually, since I thought that was automated when I select the tool settings under the project properties General tab.

    You can make a project from scratch, if you are following the correct procedures. There are several documents for that. Here is one below that I found at TI website. You, can also search in the internet for tutorials. 

    http://www.ti.com/lit/ml/spmu352/spmu352.pdf

    Regarding your USB mouse compile problem, i think you just need to set the appropriate project settings.

    -kel