嵌入式爱好者

查看: 15685|回复: 4

[Linux] 5718新建DSP核点亮LED工程

[复制链接]

4

主题

7

帖子

24

积分

AM5718通行证

扫一扫,手机访问本帖
发表于 2021-11-3 09:19:06 | 显示全部楼层 |阅读模式
用官方给的工程点亮LED没有问题,但是为什么自己新建的工程没办法编译通过呢,只要调用了GPIO_Init就会报错,我把该添加的库都添加了,BIOS也用了,依然编译失败,有没有一个新建这种工程的流程呀,自己摸索不到头绪
回复

使用道具 举报

0

主题

236

帖子

752

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证RK3568通行证RK3399通行证LS1028A通行证LS1012A通行证LS1043A\46A通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX RT通行证XX18通行证AM62x资料下载

发表于 2021-11-3 15:37:28 | 显示全部楼层
我们5718软件手册,8.3和8.4节,介绍了CCS编译和简单的编译方法可以参考一下,也可以把具体的报错发出来,我们看看是否遇到过类似的问题

点评

你们的编译方法我看了的,没有看到怎么建立工程,编译原厂的工程没有问题,这是新建工程编译的错误: **** Build of configuration Debug for project led_test **** "D:\\ti\\ccs1040\\ccs\%utils\\bin\\gm  详情 回复 发表于 2021-11-3 16:28
点评回复 支持 反对

使用道具 举报

4

主题

7

帖子

24

积分

AM5718通行证

 楼主| 发表于 2021-11-3 16:28:16 | 显示全部楼层
ljb2019001 发表于 2021-11-3 15:37
我们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.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头文件
点评回复 支持 反对

使用道具 举报

0

主题

236

帖子

752

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证RK3568通行证RK3399通行证LS1028A通行证LS1012A通行证LS1043A\46A通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX RT通行证XX18通行证AM62x资料下载

发表于 2021-11-4 08:46:43 | 显示全部楼层
我们没有遇到过类似的错误,我网上找了一下,您试试https://blog.csdn.net/sinat_42433972/article/details/90319213

点评

嗯嗯 好的 谢谢  详情 回复 发表于 2021-11-4 09:20
点评回复 支持 反对

使用道具 举报

4

主题

7

帖子

24

积分

AM5718通行证

 楼主| 发表于 2021-11-4 09:20:09 | 显示全部楼层
ljb2019001 发表于 2021-11-4 08:46
我们没有遇到过类似的错误,我网上找了一下,您试试https://blog.csdn.net/sinat_42433972/article/details ...

嗯嗯  好的  谢谢
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-20 09:53

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表