1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
用官方给的工程点亮LED没有问题,但是为什么自己新建的工程没办法编译通过呢,只要调用了GPIO_Init就会报错,我把该添加的库都添加了,BIOS也用了,依然编译失败,有没有一个新建这种工程的流程呀,自己摸索不到头绪
|
|
相关推荐
3个回答
|
|
我们5718软件手册,8.3和8.4节,介绍了CCS编译和简单的编译方法可以参考一下,也可以把具体的报错发出来,我们看看是否遇到过类似的问题
|
|
|
|
你们的编译方法我看了的,没有看到怎么建立工程,编译原厂的工程没有问题,这是新建工程编译的错误:
**** 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.sy***ios library makefile ... Starting build of library sources ... ** R:/Users/lhy0611/Desktop/led_test/src/sy***ios/sy***ios.ae66 ... cle66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/BIOS.c ... asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/family/c64p/Exception_asm.s64P ... asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/family/c64p/Hwi_asm.s62 ... asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/family/c64p/Hwi_asm_switch.s62 ... asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/family/c64p/Hwi_disp_always.s64P ... asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/rts/ti/tls_get_tp.asm ... asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/family/c62/TaskSupport_asm.s62 ... asme66 D:/ti/processor_sdk_rtos_am57xx_06_03_02_08/bios_6_76_03_01/packages/ti/sy***ios/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/sy***ios/sy***ios.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/sy***ios/sy***ios.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 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头文件 |
|
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
569 浏览 0 评论
839 浏览 1 评论
737 浏览 1 评论
1957 浏览 1 评论
3204 浏览 1 评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 08:40 , Processed in 0.637374 second(s), Total 76, Slave 60 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号