cancel
Showing results for 
Search instead for 
Did you mean: 

Differences between debug mode and normal running

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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
Up vote any posts that you find helpful, it shows what's working..

Thank you very much. I will do as adviced