zbb9612 发表于 2018-7-11 03:00
1. 安装完mcsdk后的pdk csl下有相应的EDMA例子,在这个论坛上搜索一下,也有相应的EDMA例子;
2. 可以在初始化的时候使用#include "datafile",或者在load完程序后,使用load memory功能将数据load到对应的memory段。
你好,我用edma例程有个问题:
undefined first referenced
symbol in file
--------- ----------------
CSL_edma3ChannelClose ./edma_test.obj
CSL_edma3ChannelOpen ./edma_test.obj
CSL_edma3Close ./edma_test.obj
CSL_edma3GetHwStatus ./edma_test.obj
CSL_edma3GetParamHandle ./edma_test.obj
CSL_edma3HwChannelControl ./edma_test.obj
CSL_edma3HwChannelSetupParam ./edma_test.obj
CSL_edma3HwChannelSetupQue ./edma_test.obj
CSL_edma3HwChannelSetupTriggerWord ./edma_test.obj
CSL_edma3HwControl ./edma_test.obj
CSL_edma3Init ./edma_test.obj
CSL_edma3Open ./edma_test.obj
CSL_edma3ParamSetup ./edma_test.obj
CSL_edma3ParamWriteWord ./edma_test.obj
error: unresolved symbols remain
error: errors encountered during linking;
是链接的问题,我想应该是link时候csl库没有加进去;link命令如下:
'Building target: Oct10thC6678EDMA.out'
'Invoking: C6000 Linker'
"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --diag_warning=225 --abi=eabi -z -m"Oct10thC6678EDMA.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/include" --reread_libs --rom_model -o "Oct10thC6678EDMA.out" "./edma_test.obj" -l"libc.a" "../edma_test.cmd"
我的问题是这样的:
1 原因是不是我想的那样,csl的库没有被link进去?
2 是的话,怎么才能加进去呢?
ps: CCS版本ccs_base_5.0.3.00023,pkd版本是pdk_C6678_1_0_0_9_beta2。例程是C:Program FilesTexas Instrumentspdk_C6678_1_0_0_9_beta2packagesticslexampleedma下的edma_test.c,test_lik.cmd,自己新建工程建立的。。
Many thanks!