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.

TMS320C6678自带的EDMA例子编译出错

Other Parts Discussed in Thread: TMS320C6678

您好!

      我在CCS v5中新建工程,然后将csl里自带的EDMA例子拷进去编译,结果出现了如下的16个错误,好像是同一个原因,请问是什么问题呢?谢谢!

errors encountered during linking; "edmatest_6678.out" not built

Linking failed. Check the Console window for details.
 
unresolved symbol _CSL_edma3ChannelClose, first referenced in ./edma_test.obj
 
unresolved symbol _CSL_edma3ChannelOpen, first referenced in ./edma_test.obj
 
unresolved symbol _CSL_edma3Close, first referenced in ./edma_test.obj 

unresolved symbol _CSL_edma3GetHwStatus, first referenced in ./edma_test.obj
 
unresolved symbol _CSL_edma3GetParamHandle, first referenced in ./edma_test.obj

unresolved symbol _CSL_edma3HwChannelControl, first referenced in ./edma_test.obj
 
unresolved symbol _CSL_edma3HwChannelSetupParam, first referenced in ./edma_test.obj
 
unresolved symbol _CSL_edma3HwChannelSetupQue, first referenced in ./edma_test.obj

unresolved symbol _CSL_edma3HwChannelSetupTriggerWord, first referenced in ./edma_test.obj
 
unresolved symbol _CSL_edma3HwControl, first referenced in ./edma_test.obj 
 
unresolved symbol _CSL_edma3Init, first referenced in ./edma_test.obj
  
unresolved symbol _CSL_edma3Open, first referenced in ./edma_test.obj 
  
unresolved symbol _CSL_edma3ParamSetup, first referenced in ./edma_test.obj
  
unresolved symbol _CSL_edma3ParamWriteWord, first referenced in ./edma_test.obj 

  • 您好,

    需要在properties->linker->file search path 中添加相应的csl lib库。

  • Andy Yin
         您好!请问是添加\ccsv5\tools\compiler\c6000\lib 这个路径吗?如果是的话我已经添加了,可是还是出现上面这些问题,而且现在又多了以下的问题:This project was created using a version of Code Generation tools that is not currently installed: 7.2.1 [C6000]. Please install the Code Generation tools of this version, or migrate the project to one of the supported versions.请问是什么原因呢?我将工程文上传了,请您帮忙看一下是什么问题,非常感谢!

    edmatset_C6678.rar
  • 您好,

    需要在include options中添加PDK_INSTALL_PATH\packages\ti\csl及PDK_INSTALL_PATH\packages;

    在file search path的include library file窗口中添加PDK_INSTALL_PATH\packages\ti\csl\lib\ti.csl.ae66

  • Andy Yin

       您好!上面提到的问题用您给的方法解决了,非常感谢!现在编译没错误了,只是还有一个警告:Invalid project path: Duplicate path entries found (/edmatset_C6678 [Include path] isSystemInclude:true includePath:D:/TMS320C6678/CCS_5.0.3/CCSsetupfolder/ccsv5/tools/compiler/c6000/include), path: [/edmatset_C6678].请问这个警告对程序的运行有影响吗?谢谢!

  • 您好,

    请查看一下include path中是否有无效的路径,不会对程序运行产生影响。

  • Andy Yin

             您好!上面与遇到的问题用您给的方法都解决了,现在编译已经没错误!非常感谢!接下来的问题就是在EVM板上进行仿真,我建好配置文件——launch——connect target——load program之后,在console里面显示如下信息C66xx_0: GEL Output: Setup_Memory_Map...

    C66xx_0: GEL Output: Setup_Memory_Map... Done.

    C66xx_0: GEL Output:

    Connecting Target...

    C66xx_0: GEL Output: DSP core #0

    C66xx_0: GEL Output: No initialization performed since bootmode = 0x00000005

    C66xx_0: GEL Output: You can manually initialize with GlobalDefaultSetup

    C66xx_0: GEL Output: Invalidate All Cache...

    C66xx_0: GEL Output: Invalidate All Cache... Done.

    C66xx_0: GEL Output: DSP Reset CPU...

    C66xx_0: GEL Output: DSP Reset CPU... Done.

    C66xx_0: GEL Output: Disable all EDMA3 interrupts and events.

    接下来要对EDMA功能进行测试应该怎么进行呢?我如何才能知道EDMA功能测试成功了呢?谢谢!

  • Andy Yin

             您好!上面与遇到的问题用您给的方法都解决了,现在编译已经没错误!非常感谢!接下来的问题就是在EVM板上进行仿真,我建好配置文件——launch——connect target——load program之后,在console里面显示如下信息C66xx_0: GEL Output: Setup_Memory_Map...

    C66xx_0: GEL Output: Setup_Memory_Map... Done.

    C66xx_0: GEL Output:

    Connecting Target...

    C66xx_0: GEL Output: DSP core #0

    C66xx_0: GEL Output: No initialization performed since bootmode = 0x00000005

    C66xx_0: GEL Output: You can manually initialize with GlobalDefaultSetup

    C66xx_0: GEL Output: Invalidate All Cache...

    C66xx_0: GEL Output: Invalidate All Cache... Done.

    C66xx_0: GEL Output: DSP Reset CPU...

    C66xx_0: GEL Output: DSP Reset CPU... Done.

    C66xx_0: GEL Output: Disable all EDMA3 interrupts and events.

    接下来要对EDMA功能进行测试应该怎么进行呢?我如何才能知道EDMA功能测试成功了呢?谢谢!

  • 您好,

    请先结合EDMA user guide及source code学习一下,然后再进行测试。