Skip to main content
ATo
Associate II
Jul 24, 2019 7:01 PM UTC
Solved

Nucleo-H743ZI, Keil MDK-Lite V5.***, Variable watch not displaying correct values.

Hi,

When I add variables to watch during debugging, the watch window does not display the actual value of the variable. I know the variables have the correct value because the program flow based on the value of the variable is correct. The watch just seems static and never updates variable changes.

I have tried 2 different computers, 2 different Nucle0-H743ZI boards, Optimization set to 0, added "volatile" when declaring variables, updated the debug drivers.

Changing variable type and changing the scope of the variable has no effect.

The only time the watch window is correct is if I assign a value to the variable during declaration, the watch window displays the correct declaration value. But that value never changes even when the variable changes.

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jul 24, 2019 10:17 PM UTC

Turn off the caching

Stop at a break-point and check the memory view then.

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

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jul 24, 2019 10:17 PM UTC

Turn off the caching

Stop at a break-point and check the memory view then.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ATo
AToAuthor
Associate II
Jul 25, 2019 8:32 PM UTC

Turning off the cache was the panacea. Thank you.

I had almost given up on the H7, was going to admit defeat and to go back to using a M4 class uC.