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.

CCS: What I'm missing - The eclipse IDE again

Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

As you can the it need #include "F28x_Project.h"


So to include that header I go to. Proyect->Properties and in CCS Build->C2000 Compiler->Include Option and in Add dir to #include search path (--include_path, -l)

I include the paths:

C:\ti\controlSUITE\device_support\F2837xS\v210\F2837xS_headers\include

and

C:\ti\controlSUITE\device_support\F2837xS\v210\F2837xS_common\include

As you can see here

But when I press Build 'Debug' I get this error messages:

**** Build of configuration Debug for project PruebaBlinking ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building file: ../main.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/Users/julia/Documents/PruebaBlinking" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_headers/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_common/include" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.3.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d" "../main.c"
'Finished building: ../main.c'
' '
'Building target: PruebaBlinking.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"PruebaBlinking.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.3.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.3.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="PruebaBlinking_linkInfo.xml" --rom_model -o "PruebaBlinking.out" "./main.obj" "../28377S_FLASH_lnk.cmd" -llibc.a
<Linking>

undefined first referenced
symbol in file
--------- ----------------
_F28x_usDelay ./main.obj
_GPIO_SetupPinMux ./main.obj
_GPIO_SetupPinOptions ./main.obj
_GPIO_WritePin ./main.obj
_InitGpio ./main.obj
_InitPieCtrl ./main.obj
_InitPieVectTable ./main.obj
_InitSysCtrl ./main.obj

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "PruebaBlinking.out" not built
>> Compilation failure
makefile:141: recipe for target 'PruebaBlinking.out' failed
gmake[1]: *** [PruebaBlinking.out] Error 1
gmake: *** [all] Error 2
makefile:137: recipe for target 'all' failed

**** Build Finished ****

What I'm missing? an include? Please help me with this. 

  • Hello,

    Julian Oviedo said:
    What I'm missing? an include? Please help me with this. 

    You are getting a linker error, not a compiler error. Hence it is not an issue with include files or include search paths (which would lead to compiler errors).

    The linker you are getting is described below:

    http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/10234

    In your case, you are missing library or source files that define the symbols mentioned. For example:

    Julian Oviedo said:
    undefined first referenced
    symbol in file
    --------- ----------------
    _F28x_usDelay ./main.obj
    _GPIO_SetupPinMux ./main.obj
    _GPIO_SetupPinOptions ./main.obj
    _GPIO_WritePin ./main.obj
    _InitGpio ./main.obj
    _InitPieCtrl ./main.obj
    _InitPieVectTable ./main.obj
    _InitSysCtrl ./main.obj

    The three GPIO functions are defined in the F2837xS_Gpio.c source file. You need that in your project. IntPieCtrl is defined in F2837xS_PieCtrl.c. Etc. Look at the blinky_cpu01 example in ControlSUITE for your device for more tips.

    Thanks

    ki

  • Hello, thank for the reply.

    Where are F2837xS_Gpio.c and F2837xS_PieCtrl.c? I can't find it in C:\ti\controlSUITE\device_support\F2837xS\v210\F2837xS_examples_Cpu1\blinky\cpu01

    and How I must include a .c? I think it's different that a .h in eclipse.
  • Julian Oviedo said:
    Where are F2837xS_Gpio.c and F2837xS_PieCtrl.c? I can't find it in C:\ti\controlSUITE\device_support\F2837xS\v210\F2837xS_examples_Cpu1\blinky\cpu01

    Import the project into your workspace. When it is imported, you can see the project with several linked files. A link means that the file is not inside the project folder but the project has the path to it. That is why you don't see the source file there. You can right click on each linked file and in the properties you can see where it is located:

    Julian Oviedo said:
    and How I must include a .c? I think it's different that a .h in eclipse.

    Add it to your project like any other source file (like main.c)

    Thanks

    ki