This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
各位大虾,你们好,我现在在调试6678,在编译过程中发现一个问题。解决不了。我也尝试了网上所有的解决方法。我直接在官网下载的IPC_example_on_6678,我编译的时候,出现如下错误:
D:\CCS5.0\ccsv5\utils\gmake\gmake -k all
'Building file: ../IPC_example_main.c'
'Invoking: C6000 Compiler'
"D:/CCS5.0/ccsv5/tools/compiler/c6000/bin/cl6x" -g --include_path="D:/CCS5.0/ccsv5/tools/compiler/c6000/include" --include_path="PDK_INSTALL_PATH\packages" --include_path="PDK_INSTALL_PATH\packages\ti\csl" --include_path="D:\Program Files\Texas Instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\csl\src\intc" --include_path="D:\Program Files\Texas Instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\csl" --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="IPC_example_main.pp" "../IPC_example_main.c"
"D:\Program Files\Texas Instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\csl\csl_cpintcAux.h", line 45: fatal error: could not open source file "ti/csl/csl_cpIntc.h"
>> Compilation failure
1 fatal error detected in the compilation of "../IPC_example_main.c".
Compilation terminated.
gmake: *** [IPC_example_main.obj] Error 1
'Building file: ../ipc_interrupt.c'
'Invoking: C6000 Compiler'
"D:/CCS5.0/ccsv5/tools/compiler/c6000/bin/cl6x" -g --include_path="D:/CCS5.0/ccsv5/tools/compiler/c6000/include" --include_path="PDK_INSTALL_PATH\packages" --include_path="PDK_INSTALL_PATH\packages\ti\csl" --include_path="D:\Program Files\Texas Instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\csl\src\intc" --include_path="D:\Program Files\Texas Instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\csl" --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="ipc_interrupt.pp" "../ipc_interrupt.c"
"D:\Program Files\Texas Instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\csl\csl.h", line 47: fatal error: could not open source file "ti/csl/csl_types.h"
1 fatal error detected in the compilation of "../ipc_interrupt.c".
Compilation terminated.
>> Compilation failure
gmake: *** [ipc_interrupt.obj] Error 1
gmake: Target `all' not remade because of errors.
我的文件里面对头文件的引用出现了include “\ti\csl\csl.h”。谢谢指导。
应该是安装目录,搜索路径的问题。你在ti\csl下面找到csl.h文件了么
一般demo的安装演示路径会是c:\ti or c:\Program Files\Texas Instruments,注意在import工程的时候要和本地安装的路径一致。
最简单的检查路径是否一致的方法是在工程的文件列表窗口,点击展开include folders,看是否相关文件在搜索目录下面。
谢谢你,我现在已经解决了那个问题。但是,我有出现了个新的问题。我看了,在c6x.h上面有这个程序段
#if defined(_TMS320C6400_PLUS) || defined(_TMS320C6740) || defined(_TMS320C6600) || \
defined(_TI_C6X_TESLA)
extern __cregister volatile unsigned int REP;
extern __cregister volatile unsigned int TSCL;
extern __cregister volatile unsigned int TSCH;
extern __cregister volatile unsigned int ARP;
extern __cregister volatile unsigned int ILC;
extern __cregister volatile unsigned int RILC;
extern __cregister volatile unsigned int PCE1;
extern __cregister volatile unsigned int DNUM;
extern __cregister volatile unsigned int SSR;
extern __cregister volatile unsigned int GPLYA;
extern __cregister volatile unsigned int GPLYB;
extern __cregister volatile unsigned int TSR;
extern __cregister volatile unsigned int ITSR;
extern __cregister volatile unsigned int NTSR;
extern __cregister volatile unsigned int ECR;
extern __cregister volatile unsigned int EFR;
extern __cregister volatile unsigned int IERR;
extern __cregister volatile unsigned int DMSG;
extern __cregister volatile unsigned int CMSG;
extern __cregister volatile unsigned int DT_DMA_ADDR;
extern __cregister volatile unsigned int DT_DMA_DATA;
extern __cregister volatile unsigned int DT_DMA_CNTL;
extern __cregister volatile unsigned int TCU_CNTL;
extern __cregister volatile unsigned int RTDX_REC_CNTL;
extern __cregister volatile unsigned int RTDX_XMT_CNTL;
extern __cregister volatile unsigned int RTDX_CFG;
extern __cregister volatile unsigned int RTDX_RDATA;
extern __cregister volatile unsigned int RTDX_WDATA;
extern __cregister volatile unsigned int RTDX_RADDR;
extern __cregister volatile unsigned int RTDX_WADDR;
extern __cregister volatile unsigned int MFREG0;
extern __cregister volatile unsigned int DBG_STAT;
extern __cregister volatile unsigned int BRK_EN;
extern __cregister volatile unsigned int HWBP0_CNT;
extern __cregister volatile unsigned int HWBP0;
extern __cregister volatile unsigned int HWBP1;
extern __cregister volatile unsigned int HWBP2;
extern __cregister volatile unsigned int HWBP3;
extern __cregister volatile unsigned int OVERLAY;
extern __cregister volatile unsigned int PC_PROF;
extern __cregister volatile unsigned int ATSR;
extern __cregister volatile unsigned int TRR;
extern __cregister volatile unsigned int TCRR;
#endif 我不晓得这个该如何解决。师兄,你要是有可以编译通过的工程文件,可否给我一个,我好学习学习。谢谢你了。
这应该还是路径的问题。另外如果你安装了6608PDK,PDK安装目录下面的例子工程如果在路径正确设置的情况下,都可以正确编译。
你可以先找个PDK的工程熟悉一下