你好,
我在win系统CCS6.2.0.00050软件中导入C:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\drivers\的工程,进行编译,发现出现错误,然后我在include option 中添加了库
"C:\ti\AM335X_StarterWare_02_00_01_01\include\armv7a"
"C:\ti\AM335X_StarterWare_02_00_01_01\include"
"C:\ti\AM335X_StarterWare_02_00_01_01\include\armv7a\am335x"
"C:\ti\AM335X_StarterWare_02_00_01_01\include\hw"
然后错误少了一点,但是还是有错误,
Compilation failure
subdir_rules.mk:7: recipe for target 'cppi41dma.obj' failed
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 110: error #20: identifier "SOC_CACHELINE_SIZE_MAX" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 245: error #20: identifier "SOC_USB_0_BASE" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 246: error #20: identifier "USB_0_OTGBASE" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 406: error #20: identifier "USB_0_CTRL" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 413: error #20: identifier "USB_0_CTRL" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 419: error #20: identifier "USB_0_TX_MODE" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 425: error #20: identifier "USB_0_RX_MODE" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 434: error #20: identifier "USB_0_GEN_RNDIS_SIZE_EP1" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 1352: error #20: identifier "USB_0_OTGBASE" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 1789: error #20: identifier "USB1_BASE" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 1793: error #20: identifier "SOC_USB_0_BASE" is undefined
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 2021: error #20: identifier "USB_0_OTGBASE" is undefined
12 errors detected in the compilation of "C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c".
gmake: *** [cppi41dma.obj] Error 1
我打算在Beaglebone black 板上使用, 是否我缺部分设置?还是什么原因?
谢谢
Jian Zhou:
好像是缺少库文件的编译,同时请参考:
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/73955.aspx
Eggsy Pang:
你好
你应该是Copy了starterware到你的CCS工作目录,导致库文件没有链接。
建议导入工程不要选中如下图片所示。如果选中了,请在CCS的工程设置中,设置相关的链接文件,因为此时工程的工作目录是CSS的工作目录。
JinCai Sun:
没有导入usblib的库吧?所以许多USB的基本define都找不到
Paul Schaw:
回复 JinCai Sun:
将相应库Release文件里面的拷贝一份,放到相同文件夹命名为Debug,就可以了,请注意报错的内容,以便对症下药!
JinCai Sun:
回复 Paul Schaw:
是你库没生成,只是包含了路径而已,把库都生成下就好了