- 积分
- 24
贡献126
飞刀31 FD
注册时间2021-10-27
在线时间4 小时
|
楼主 |
发表于 2021-11-3 16:28:16
|
显示全部楼层
你们的编译方法我看了的,没有看到怎么建立工程,编译原厂的工程没有问题,这是新建工程编译的错误:
**** Build of configuration Debug for project led_test ****
"D:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../app.cfg"
Invoking: XDCtools
"D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/xdctools_3_55_02_22_core/xs" --xdcpath="D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages;D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/pdk_am57xx_1_0_18/packages;D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/ipc_3_50_04_08/packages;D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/ctoolslib_2_2_0_0/packages;D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/ndk_3_61_01_01/packages;D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/xdais_7_24_00_04/packages;D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/xdais_7_24_00_04/examples;D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/uia_2_30_01_02/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmDRA7XX:dsp1 -r release -c "D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10" --compileOptions "-g" "../app.cfg"
** package.mak (because of package.bld) ...
generating inte**ces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring app.xe66 from package/cfg/app_pe66.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
** R:/Users/lhy0611/Desktop/led_test/src/sysbios/sysbios.ae66 ...
cle66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/BIOS.c ...
asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sysbios/timers/dmtimer/Timer_asm.s64P ...
are66 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 dmtimer_Timer_asm.obj ...
Build of libraries done.
cle66 package/cfg/app_pe66.c ...
Finished building: "../app.cfg"
已复制 1 个文件。
** ../src/sysbios/sysbios.ae66 ...
gmake[1]: Nothing to be done for 'all'.
Building file: "../rsc_table_vayu_dsp.c"
Invoking: C6000 Compiler
"D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/bin/cl6x" -mv6600 --include_path="R:/Users/lhy0611/Desktop/led_test" --include_path="D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/posix/ccs" --include_path="D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/include" --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="rsc_table_vayu_dsp.d_raw" --cmd_file="configPkg/compiler.opt" "../rsc_table_vayu_dsp.c"
Finished building: "../rsc_table_vayu_dsp.c"
Building file: "../GPIO_OK5718_board.c"
Invoking: C6000 Compiler
"D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/bin/cl6x" -mv6600 --include_path="R:/Users/lhy0611/Desktop/led_test" --include_path="D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/posix/ccs" --include_path="D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/include" --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="GPIO_OK5718_board.d_raw" --cmd_file="configPkg/compiler.opt" "../GPIO_OK5718_board.c"
Finished building: "../GPIO_OK5718_board.c"
Building file: "../main_led_blink.c"
Invoking: C6000 Compiler
"D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/bin/cl6x" -mv6600 --include_path="R:/Users/lhy0611/Desktop/led_test" --include_path="D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/posix/ccs" --include_path="D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/include" --define=am5718 -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 88: warning #179-D: variable "task" was declared but never referenced
"../main_led_blink.c", line 88: warning #179-D: variable "task1" was declared but never referenced
"../main_led_blink.c", line 89: warning #179-D: variable "clockParams" was declared but never referenced
"../main_led_blink.c", line 91: warning #179-D: variable "callIpcStartup" was declared but never referenced
Finished building: "../main_led_blink.c"
** ../src/sysbios/sysbios.ae66 ...
gmake[2]: Nothing to be done for 'all'.
Building target: "led_test.out"
Invoking: C6000 Linker
"D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/bin/cl6x" -mv6600 --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"led_test.map" --heap_size=0x800 --stack_size=0x800 -i"D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/lib" -i"D:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c6000_8.3.10/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="led_test_linkInfo.xml" --rom_model -o "led_test.out" "./GPIO_OK5718_board.obj" "./main_led_blink.obj" "./rsc_table_vayu_dsp.obj" -l"configPkg/linker.cmd" -llibc.a
<Linking>
undefined first referenced
symbol in file
--------- ----------------
GPIO_init ./main_led_blink.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "led_test.out" not built
>> Compilation failure
makefile:142: recipe for target 'led_test.out' failed
gmake[1]: *** [led_test.out] Error 1
makefile:138: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****
大概是没有找到GPIO_Init的函数,但是我把测试例程的文件拷贝过来也还是找不到,而且测试例程里没看到这个函数的具体实现,只能定位到.h头文件
|
|