UART reception breaks after pause/breakpoint

Sysprogs forums Forums VisualGDB UART reception breaks after pause/breakpoint

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9825
    zzattack
    Participant

    I’ve got a program that reads a few UART ports using DMA. This works fine, but the moment I hit a breakpoint or pause the execution, no further UART data is ever received until I reinitialize the peripheral. My best guess is that the debugger loads some read-once registers causing issues further down the road. Is this a common issue, and are there workarounds?

    #9834
    support
    Keymaster

    Hi,

    Your device may not stop the DMA clock while the CPU is stopped in the debugger, so this could cause some buffer overruns or other similar problems. We would recommend checking the UART and DMA registers to understand what exactly happens and then checking through the device documentation for ways to pause UART/DMA during debug stops.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.