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 ping-pang处理数据问题

Part Number: TMS320C6678


程序基本思路:①EDMA触发ping向内核搬数据;②轮询IPR,ping搬数据结束后,触发pong向内核搬数据同时处理ping的数据(矩阵相乘;③轮询IPR,pong搬数据结束后,触发ping向内核搬数据同时处理pong的数据(矩阵相乘;④如上交替执行。

问题:为方便观察,所以在EDMA程序中加入printf语句观察执行情况,在有printf语句输出的情况下,数据处理后输出结果是对的;但是!!!如何把printf语句注释掉,输出结果就错了。这是什么原因呢?望有经验的人能够解答。