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.

Error when trying to compile for Tica C Series

Other Parts Discussed in Thread: TM4C123GH6PM

Hello all,

I am trying to program TM4C123GH6PM using TivaWare. The only code I put in first is the include files:

#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"

uint8_t ui8PinData = 2;

When I tried to run it for the first time, it gave me an error about not finding hw_memmap.h . So I went in the project properties>Build>ARM Compiler>Include Options>Add dir... and added "C:\ti\TivaWare_C_Series-2.1.0.12573".

Now this error does not show up but these two started showing up:

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "lab3.out" not built

O tried to build the program at Project>Build Project but nothing.

What can I do to fix this?

  • So I was able to find the solution. I did not configure my project correctrly to find TivaWare. Will write down what I did if anybody in the feature needs it :)

    1) Right click project > Select "Properties" > Go to "Resource" > Click "Linked Resources" > Under the TAB "Path Variebles" click "New" > write in Name "TIVAWARE_INSTALL" > Click "Folder..." > Find the folder where you have installed TivaWare (it will be something like C:\ti\TivaWare_C_Series-2.1.0.12573" > Click "OK" > Click "OK"

    2) Go again to the project Properties > go to "Build > Under the TAB "Variables", click "Add..." > at "Variable name" select "TIVAWARE_INSTALL" > check "Apply to all configurations" > at "Type" select "Directory" > click "Browse" and select the folder that TivaWare is installed (if it's no there already) > Click "OK" > Click "OK"

    3) Select your project from the "Project Explorer" > click at the menu "Project" and then "Add File..." > Go to the TivaWare folder and then go to "driverlib\ccs\Debug" > Select "driverlib.lib" and click "Open" > from the pop-up window select "Link to files" > Check the "Create link..." and select "TIVAWARE_INSTALL" > click "OK"

    4) Go to the project Properties > go to "Build" > go to "ARM Compiler" > go to "Include Options" > click "Add..." (it's the icon with a paper and a green plus sign) > under "Directory:" write ${TIVAWARE_INSTALL}

    that's all. I am sure there is a way for this to happen automaticaly when I create a new project but untill I find that, this is my solution :)