cancel
Showing results for 
Search instead for 
Did you mean: 

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

ATo
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Turn off the caching

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

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

Turn off the caching

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ATo
Associate II

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.