Part Number:TMS320F28388SOther Parts Discussed in Thread:C2000WARE
在28388开发板使用时候碰到一个问题,向您请教
具体问题如下:
用CCS(Version: 10.4.0.00006 )导入如下Ti提供的例子:
C:\ti\c2000\C2000Ware_3_04_00_00\libraries\communications\Ethercat\f2838x\examples\f2838x_cpu1_echoback_solution
其中C2000Ware版本为3.4.0.00
未经任何修改直接编译Console窗口有如下报错:
>> Compilation failure
subdir_rules.mk:9: recipe for target 'ethercat_slave_cpu1_hal.obj' failed
"C:/ti/c2000/C2000Ware_3_04_00_00/libraries/communications/Ethercat/f2838x/include/ethercat_slave_cpu1_hal.h", line 73: fatal error #1965: cannot open source file "ecat_def.h"
1 catastrophic error detected in the compilation of "../ethercat_slave_cpu1_hal.c".
Compilation terminated.
gmake: *** [ethercat_slave_cpu1_hal.obj] Error 1
gmake: Target 'all' not remade because of errors.
Problem窗口有如下报错
Description
Resource Path
Location Type
#1965 cannot open source file "ecat_def.h"
.ccsproject /f2838x_cpu1_echoback_solution
line 73, external location: C:\ti\c2000\C2000Ware_3_04_00_00\libraries\communications\Ethercat\f2838x\include\ethercat_slave_cpu1_hal.h
C/C++ Problem
gmake: *** [ethercat_slave_cpu1_hal.obj] Error 1
f2838x_cpu1_echoback_solution C/C++ Problem
gmake: Target 'all' not remade because of errors.
f2838x_cpu1_echoback_solution C/C++ Problem
截图如下:
麻烦请帮忙看看如何解决?谢!
Green Deng:
你好,这个位置的例程是会报这个错误。这个路径下的是需要调用的库例程,不是完整例程。
你可以试试这个路径下的例程:C:\ti\c2000\C2000Ware_4_00_00_00\driverlib\f2838x\examples\c28x_cm\ethernet