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.
Andy Yin
您好!我是在Memory Browser里查看srcbuff1和dstbuff1地址的数据以及srcbuff2和dstbuff2地址的数据,结果发现srcbuff1和srcbuff2地址的数据是一样的,可是dstbuff1和dstbuff2的数据都为0,请问是什么原因呢?另外在验证数据传输是否正确的函数里面有以下语句:
for (loopIndex1 = 0; loopIndex1 < cCnt; loopIndex1++) {
for (loopIndex2 = 0; loopIndex2 < bCnt; loopIndex2++) {
for (loopIndex3 = 0; loopIndex3 < aCnt; loopIndex3++){
if (srcArrayPtr[loopIndex3] != dstArrayPtr[loopIndex3])
return FALSE;
else
return TRUE;
从整个工程的测试结果可以看出,这个位置返回的应该是true,也就是说对于数组中每一个元素srcArrayPtr[loopIndex3] == dstArrayPtr[loopIndex3],即每一个元素都传输完成了,所以EDMA应该是传输完成了,但不知道这个分析是否正确,如果是这样的话为什么还会出现源缓冲区和目的缓冲区的数据不一致的情况呢?谢谢!
您好,我运行了附件中的edma3.c,能够成功搬运数据,不知为何