Skip to main content
PieterInHetBos
Associate II
July 17, 2023
Solved

Differences between debug mode and normal running

  • July 17, 2023
  • 2 replies
  • 1785 views

Hi all,

I have a piece of code that does DMA on a UART port. This DMA i read in an buffer and i reply in 1 ms

Sometimes i dont get the incomming UART message. I wanted to confimr this with the debug mode and reading the buffer with "live expressions". But when i use debug mode with live expresions the error never occurs. The rest of the codde is the same. 

Is there a difference in timing with the DMA UART when debug is enabled?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    Mostly code order and optimization.

    Would watch for appropriate use of volatile and cache coherence protocols where those may be an issue.

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    July 17, 2023

    Mostly code order and optimization.

    Would watch for appropriate use of volatile and cache coherence protocols where those may be an issue.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    PieterInHetBos
    Associate II
    July 17, 2023

    Thank you very much. I will do as adviced