硬件环境:dm6446
软件环境:dvsdk2.0.0.22
问题描述:
在dsp算法中,我想使用dma来进行算法优化,但是好像是在分配dma资源的时候出错了。
算法中关于dma部分的配置如下:
在server/*.cfg中:
DMAN3.heapInternal= "L1DHEAP";/* L1DHEAP is an internal segment */ // DMAN3.heapInternal = "DDRALGHEAP";/* DDRALGHEAP is an external segment */ DMAN3.heapExternal= "DDRALGHEAP"; DMAN3.idma3Internal= false; DMAN3.scratchAllocFxn = "DSKT2_allocScratch"; DMAN3.scratchFreeFxn = "DSKT2_freeScratch"; DMAN3.paRamBaseIndex= 80; // 1st EDMA3 PaRAM set available for DMAN3 DMAN3.numQdmaChannels= 8;// number of device's QDMA channels to use DMAN3.qdmaChannels= [0,1,2,3,4,5,6,7]; // choice of QDMA channels to use DMAN3.numPaRamEntries= 48; // number of PaRAM sets exclusively used by DMAN DMAN3.numPaRamGroup[0]= 48; // number of PaRAM sets for scratch group 0 DMAN3.numTccGroup[0]= 32; // number of TCCs assigned to scratch group 0 DMAN3.tccAllocationMaskL = 0;// bit mask indicating which TCCs 0..31 to use DMAN3.tccAllocationMaskH = 0xffffffff; // assign all TCCs 32..63 for DMAN
在算法中也参照demo实现了IDMA3_Fxns接口函数,编译通过,运行时出现的错误截图如下:
对应的log信息如下:
Allen35065:
请转到达芬奇论坛提出相关问题。
eric eric3:
回复 Allen35065:
好的,谢谢提醒