Skip to main content
ATo
Associate II
July 24, 2019
Solved

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

  • July 24, 2019
  • 2 replies
  • 1273 views

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.
Best answer by Tesla DeLorean

Turn off the caching

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

2 replies

Tesla DeLorean
Guru
July 24, 2019

Turn off the caching

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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ATo
AToAuthor
Associate II
July 25, 2019

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.