cancel
Showing results for 
Search instead for 
Did you mean: 

Variable values in the Watch window of Keil's debug environment are not updating automatically

VolterPhase
Associate II

Hello,

As I enter debug mode and start to run (code execution), nothing is updating in the debug window( the t1 variable at the bottom of the debug mode window just showed me zero or .0026)

However, my program works fine on my STM32F10x MCU. When I stop the code execution, the watch window variables show the last updated value, and the RTOS RTX also shows the old state of each thread, and the t1 becomes a number regarding the execution code time.

I have updated my ST-Link V2 to the latest version and MDK Keil software to the latest version and installed compiler version 5 for my code compilation.

But during execution, nothing was displayed. I have also set the core clock to 72MHz at Debug->Trace->Core clock, but it did not change anything.


I need to know why the debug window is not working correctly.

1 ACCEPTED SOLUTION

Accepted Solutions

Dear Andrew Neil,

I appreciate your swift response.

Yes:) and also have

https://www.st.com/en/development-tools/st-link-v2.html

 

I was able to solve my problem: View-> Periodic Window Update is enabled

View solution in original post

4 REPLIES 4
Andrew Neil
Evangelist III

This sounds like a question for Keil:

https://community.arm.com/support-forums/f/keil-forum

Are you using a genuine ST-Link?

ie, not something like this:

 
 

AndrewNeil_2-1718888631711.png

 

Dear Andrew Neil,

I appreciate your swift response.

Yes:) and also have

https://www.st.com/en/development-tools/st-link-v2.html

 

I was able to solve my problem: View-> Periodic Window Update is enabled

You might have to stop the MCU.

The probing of memory via the debugger is intrusive. You'd be better generating telemetry via the SWO/SWV connection. Could also use the FPB / DWT units

Most ST examples can compile with the V6 compiler, need to select it, and change the command-line --c99 setting to a check-box one.

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

I appreciate your explanation and your recommendation.