I’m working through lab3 of the TM4C123_Launchpad_Workshop_Workbook. I completed through the entire lab sort of understanding what I’ve been doing in creating links to files outside of the project directory.
The homework idea was to incorporate the ButtonsPoll() API, as also demonstrated in the qs-rgb.c example in the TivaWare_C_Series-1.1 example folder. So far I’ve:
- Created a path variable named SW_ROOT with the value of ${ORIGINAL_PROJECT_ROOT}\..\..\..\..\.. in Project Properties/Resource/Linked Resources/[Path Variables tab]
- Created linked resource to buttons.c and buttons.h in Project Properties/Resource/Linked Resources/[Linked Resources tab]. If I click on the edit button, it shows the location as: SW_ROOT\examples\boards\ek-tm4c123gxl\drivers\buttons.c and the resolved location to the correct folder.
- Added the #include search path in Project Properties/Build/ARM Compiler/Include Options. The two search paths I’ve included were “${SW_ROOT}” and “${SW_ROOT}/examples/boards/ek-tm4c123gxl”.
- Created Build Variables in Project Properties/Build/[Variables tab]. The two build variables I created were ORIGINAL_PROJECT_ROOT (type Directory and value C:/ti/TivaWare_C_Series-1.1/examples/boards/ek-tm4c123gxl/qs-rgb/ccs) and SW_ROOT (type Directory and value ${ORIGINAL_PROJECT_ROOT}/../../../../..).
I feel like I’ve followed the steps of the lab in: 1. Adding a path variable; 2. Adding a build variable, 3. Linking the file to the project, and 4. Adding the include search paths. I’ve even tried to make it simple by copying the steps directly from the qs-rgb project.
The problems that occur are:
- A small yellow triangle with an exclamation mark appears on the icon of buttons.c in my project explorer.
- When I build, errors occurring. One example of the error appearing is: unresolved symbol ROM_SysCtlPeripheralEnable, first referenced in ./buttons.obj lab3
What exactly am I doing wrong? Why won’t my project build? It seems like the project cannot find the buttons.c file even though I’ve linked it as well as buttons.h file.