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/TMDSLCDK6748: Identifiers are undefined even afrer including the path and header files.

Part Number: TMDSLCDK6748
Other Parts Discussed in Thread: OMAPL138, SYSBIOS

Tool/software: Code Composer Studio

Hello,Final_Test.zip

I have installed the Example projects using the Processor SDK. I was able to build and debug the GPIO_LED_blink example project. After this, I created a new  SYS/BIOS project and copied the .c code and config file code of the example project to it. I added all the include paths and file search paths but still, when I build it I get tons of errors. I tried adding header and source files to the project using copy files option but still I get this error. please help(I have attached the zip file of the project)


**** Clean-only build of configuration Debug for project Final_Test ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 clean -O

DEL /F "Final_Test.hex" "configPkg\linker.cmd" "configPkg\compiler.opt" "Final_Test.out"
RMDIR /S/Q "configPkg\"
DEL /F "GPIO_board.obj" "GPIO_drv.obj" "GPIO_log.obj" "GPIO_v0.obj" "GPIO_v1.obj" "main.obj" "main_led_blink.obj"
DEL /F "GPIO_board.d" "GPIO_drv.d" "GPIO_log.d" "GPIO_v0.d" "GPIO_v1.d" "main.d" "main_led_blink.d"
Could Not Find C:\Users\agraw\workspace_v7\Final_Test\Debug\GPIO_board.obj
Could Not Find C:\Users\agraw\workspace_v7\Final_Test\Debug\GPIO_board.d
'Finished clean'

**** Build Finished ****

**** Build of configuration Debug for project Final_Test ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O

'Building file: "../app.cfg"'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_04_43_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_omapl138_1_0_4/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;C:/ti/uia_2_21_02_07/packages;C:/ti/ipc_3_47_01_00/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/dsplib_c674x_3_4_0_0/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -p ti.platforms.evm6748 -r release -c "C:/ti/ti-cgt-c6000_8.2.2" --compileOptions "-g --optimize_with_debug" "../app.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring app.xe674 from package/cfg/app_pe674.cfg ...
generating custom ti.sysbios library makefile ...
Linking with library ti.drv.i2c:./lib/omapl138/c674/release/ti.drv.i2c.ae674
Linking with library ti.drv.uart:./lib/omapl138/c674/release/ti.drv.uart.ae674
Linking with library ti.drv.gpio:./lib/omapl138/c674/release/ti.drv.gpio.ae674
Linking with library ti.board:./lib/lcdkOMAPL138/c674/release/ti.board.ae674
Linking with library ti.csl:./lib/omapl138/c674/release/ti.csl.ae674
Linking with library ti.osal:./lib/tirtos/omapl138/c674/release/ti.osal.ae674
Starting build of library sources ...
making C:/Users/agraw/workspace_v7/Final_Test/src/sysbios/sysbios.ae674 ...
gmake[1]: Entering directory `C:/Users/agraw/workspace_v7/Final_Test/src/sysbios'
cle674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...
remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
subsequent release. The behavior is enabled by default.
are674 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj timer64_Timer_asm.obj ...
gmake[1]: Leaving directory `C:/Users/agraw/workspace_v7/Final_Test/src/sysbios'
Build of libraries done.
cle674 package/cfg/app_pe674.c ...
'Finished building: "../app.cfg"'

1 file(s) copied.
making ../src/sysbios/sysbios.ae674 ...
gmake[1]: Nothing to be done for 'all'.
'Building file: "../GPIO_log.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/Users/agraw/workspace_v7/Final_Test" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=lcdkOMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=SOC_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="GPIO_log.d_raw" --cmd_file="configPkg/compiler.opt" "../GPIO_log.c"
'Finished building: "../GPIO_log.c"'

'Building file: "../GPIO_board.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/Users/agraw/workspace_v7/Final_Test" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=lcdkOMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=SOC_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="GPIO_board.d_raw" --cmd_file="configPkg/compiler.opt" "../GPIO_board.c"
'Finished building: "../GPIO_board.c"'

'Building file: "../main.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/Users/agraw/workspace_v7/Final_Test" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=lcdkOMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=SOC_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.c"

>> Compilation failure
subdir_rules.mk:58: recipe for target 'main.obj' failed
"../main.c", line 17: error #20: identifier "Board_initCfg" is undefined
"../main.c", line 20: error #20: identifier "GPIO_v0_HwAttrs" is undefined
"../main.c", line 23: warning #225-D: function "GPIO_socGetInitCfg" declared implicitly
"../main.c", line 23: error #20: identifier "GPIO_LED0_PORT_NUM" is undefined
"../main.c", line 28: warning #225-D: function "GPIO_socSetInitCfg" declared implicitly
"../main.c", line 36: warning #225-D: function "GPIO_socSetBankInt" declared implicitly
"../main.c", line 36: error #20: identifier "GPIO_LED0_PIN_NUM" is undefined
"../main.c", line 44: error #20: identifier "BOARD_INIT_PINMUX_CONFIG" is undefined
"../main.c", line 45: error #20: identifier "BOARD_INIT_MODULE_CLOCK" is undefined
"../main.c", line 46: error #20: identifier "BOARD_INIT_UART_STDIO" is undefined
"../main.c", line 48: warning #225-D: function "Board_init" declared implicitly
"../main.c", line 55: error #66: expected a ";"
At end of source: warning #12-D: parsing restarts here after previous syntax error
At end of source: error #68: expected a "}"
"../main.c", line 15: warning #179-D: function "Board_initGPIO" was declared but never referenced
9 errors detected in the compilation of "../main.c".
gmake: *** [main.obj] Error 1
'Building file: "../GPIO_drv.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/Users/agraw/workspace_v7/Final_Test" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=lcdkOMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=SOC_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="GPIO_drv.d_raw" --cmd_file="configPkg/compiler.opt" "../GPIO_drv.c"
'Finished building: "../GPIO_drv.c"'

'Building file: "../main_led_blink.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/Users/agraw/workspace_v7/Final_Test" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=lcdkOMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=SOC_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main_led_blink.d_raw" --cmd_file="configPkg/compiler.opt" "../main_led_blink.c"
"../main_led_blink.c", line 214: warning #112-D: statement is unreachable
'Finished building: "../main_led_blink.c"'

'Building file: "../GPIO_v0.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/Users/agraw/workspace_v7/Final_Test" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=lcdkOMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=SOC_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="GPIO_v0.d_raw" --cmd_file="configPkg/compiler.opt" "../GPIO_v0.c"
'Finished building: "../GPIO_v0.c"'

'Building file: "../GPIO_v1.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/Users/agraw/workspace_v7/Final_Test" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=lcdkOMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=SOC_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="GPIO_v1.d_raw" --cmd_file="configPkg/compiler.opt" "../GPIO_v1.c"
'Finished building: "../GPIO_v1.c"'

gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • The team is notified. They will post their feedback directly here.

    BR
    Tsvetolin Shulev
  • I got this thing running by adding TONS OF HEADER AND SOURCE files manually(selecting the copy files option). There are no errors now but my questions is :
    1)Is there an easy way to do it?
    2) Where can i find the List of all available API'S/Functions/others that can be used with this board.
    3) Is there any way to make a copy my CCS project in the workspace and work with the copied project? (If i change something in my duplicate project the things get changed automatically in the original project)

    Thanks:
  • Hi Prashant,

    I reviewed your project files and I noticed you are missing a .cfg file. The cfg file is where the libraries are loaded. For example, if you take a look at the GPIO led blink example, you will see the following:

    var devType = "omapl138"
    
    /* Load the OSAL package */ 
    var osType = "tirtos"
    var Osal = xdc.useModule('ti.osal.Settings');
    Osal.osType = osType;
    Osal.socType = devType;
    
    /*use CSL package*/
    var Csl = xdc.loadPackage('ti.csl');
    Csl.Settings.deviceType = devType;
    
    /* Load the Board package and set the board name */
    var Board = xdc.loadPackage('ti.board');
    Board.Settings.boardName = "lcdkOMAPL138";
    
    /* Load Profiling package */
    /*var Utils = xdc.loadPackage('ti.utils.profiling');*/
    
    /* Load the gpio package */
    var Gpio = xdc.loadPackage('ti.drv.gpio');
    Gpio.Settings.enableProfiling = false;    
    Gpio.Settings.socType = devType;

    This loads in the OSAL, CSL, Board, and GPIO libraries which should resolve the undefined identifier errors you are getting. 

    In the Processor SDK RTOS documentation, there is an "APIs" subsection for each device driver. For example, for GPIO:

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/Device_Drivers.html#id21

    It sounds like your source files are linked instead of copied. That's the only time I could see a copied project affecting an original project. I mentioned how to tell the difference between linked and copied files in one of your other threads. 

    BTW, you have parallel threads going with the same topics, please close out the other ones by marking them as resolved so that can we can continue the discussion in one thread. It makes it easier for us to track issues. Thanks. 

  • Also, I recommend taking a look at the Processor SDK training series (you can skip the Linux videos):

    training.ti.com/processor-sdk-training-series
  • Thanks a ton! You are AWESOME!