UART is configured with DMA enabled, so secondary controller always keep on sending data, while debugging on primary controller DMA keep on running and write on illegal location causing corruption, is there any way to halt DMA only while step run else keep running while in debug mode. enableDebugMode completely disables DMA in debug mode.