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.
我通过DMA将ADC采样结果存入数组,在完成传输期间通过while(!done)循环来等待传输完成,在DMA完成后会在中断处理函数中将done=1;但我debug时发现即使done=1,whlie循环仍在运行。
请问是什么原因导致的,该如何解决?