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 ****