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.

Starterware/EK-TM4C123GXL: How do you make a *new* CCS project that is capable of using Tivaware?

Part Number: EK-TM4C123GXL

Tool/software: Starterware

Good afternoon,

 

I’m trying to create a new CCS project that can use the TivaWare drivers, but is also a separate project from the examples. My application uses multiple peripherals, and so I would like to unit test each peripheral one at a time using a pertinent example (to ensure proper functioning), and then integrate all of them together into the separate CCS project that I have. Unfortunately, I am having a lot of trouble creating a new CCS project that can build without different kinds of errors. The following are the steps that I’ve taken to attempt this, please help me find what I am lacking!

 

  1. I imported a build variable into my workspace.
    File->Import->Code Composer Studio…->Build Variables + Apply to workspace
    My vars.ini file points to my TivaWare Install:

 

  1. I created a new CCS project
    File->New->CCS Project->ECE4437_TM4C->Empty main.c project
    When I check my Linked Resources in Window->Preferences->General->Workspace->Linked Resources, I can see TivaWare there:

    Same for my build variables in Window->Preferences->Code Composer Studio->Build->Variables

  2. I added the TivaWare’s include path in my specific project’s properties:

  3. I linked driverlib, usblib, and sensorlib by adding their .lib files to the project like so:

  4. I copied/pasted the hello example to ensure that everything was working. I then cleaned/rebuilt and I got the following errors:

Does anybody have any experience with fixing issues like these?

 

Thank you,

Charles

  • Seems you have to add uartstdio.c and uartstdio.h files to your main project, then you insert #include "uartstdio.h". These and any files that are located in the utils folder aren't automatically included in your project when you compile, if I'm not mistaken.

  • Helder,

    Thank you for jumping in and helping. You are correct. The examples in TivaWare in the "Peripherals" directory are not board specific and do require some additional configuration of the project. If the example uses uartstdio.c, I just copy that file into my project.
  • This is the correct answer. I didn't realize the utils weren't included automatically, as I had a feeling that such was done when I inserted the include path for TivaWare in the project's properties.

    Thank you both Helder and Bob for helping me out, it builds properly now!

    To summarize to those who are trying to build a *new* CCS project that can use TivaWare, you need to do the following:

    1. Import a build variable that contains the location of the TivaWare folder, and apply it to your entire workspace
    2. Create a new CCS project
    3. Add the driverlib, sensorlib, and usblib .lib files to your project. Make sure you link them into your project with respect to your TIVAWARE_INSTALL build variable
    4. Copy any necessary util files into your project
    5. Clean/rebuild your project