2024-06-20 05:52 AM
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.
Solved! Go to Solution.
2024-06-20 06:11 AM
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
2024-06-20 06:04 AM
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:
2024-06-20 06:11 AM
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
2024-06-20 06:16 AM
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.
2024-06-20 06:19 AM
I appreciate your explanation and your recommendation.