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.

C6678 VLFFT 例程



VLFFT例程调用transporse_1函数将N*8的矩阵转置为8*N的矩阵,看这里好像是也用EDMA转的,为什么这里不用全局地址访问L2SRAM呢?按照原程序运行,我查看了pWorkBuf0Internal内的数据都是0,自己改为全局地址地址后,数据才转置过来了,

原程序:

transpose_1( &pInBufInternal[(stepOutSrc*(blkIdx&0x1))>>2],
&pWorkBuf0Internal[0],
VLFFTparams->N1,
SAMPLES_PER_TRANSFER_BLOCK );

修改后

transpose_1( &pInBufInternal[(Uint32)((stepOutSrc)*(blkIdx&0x1)>>2)+((DMAparams->globalAddrOffset)>>2)],

&pWorkBuf0Internal[(DMAparams->globalAddrOffset)>>2],
VLFFTparams->N1,
SAMPLES_PER_TRANSFER_BLOCK );