I am working with an imx.rt1020.I am using a DMA interrupt to handle microphone and another to handle a speaker, while it is connected to the computer. After a few code changes, it stopped responding as expected. When I make any change to the code such as adding a nop it resume working properly.
So, I use the trace tool to identify what was happening and I notice that the interrupt have the same duration but it is not returning to the main and it stays util it hits a new interruption. The last is the time past since the last event in microseconds.


When I change something in the code, such as changing a pin state or just add a nop it "fix" the behavior.

I want to know what is holding the program.
If someone can help me identify what is happening.