-
Notifications
You must be signed in to change notification settings - Fork 3k
[STM32F401xE] Freeze master timer on stop/breakpoint #4881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
As most often, my PRs are just proposals to be extended to all ST platforms. In this case only platform
Well, I won't see it as something an API should specify, it's simply something which makes debugging easier as timers will stop when a debugger stops the exeuction of an application. Typically, having timers continue to run while execution is stopped is an intrusion which often makes it impossible to continue execution afterwards without impacting also the overall behabior (e.g. by running immediately into a timeout). |
Hi @betzw, you might want to leave the RTC counting even when the target is halted. I would expect this to keep time regardless of debugging. |
This might be reasonable, I have actually never faced a situation where the RTC created problems/timeouts during debugging, even if I believe you cannot exclude it. It's kind of "there is no right or wrong" ... |
It's ok with me. I have some remarks:
|
@bcostm |
@bcostm Do you have plans to extend this PR? |
I didn't know you were waiting for me... Well, I'd prefer to wait that this PR is accepted and merged first on this target (F401RE). Then sure we'll extend it on all other targets. |
It needs some work - RTC not freeze, test it (all CI green) |
478c105
to
f8114f2
Compare
@0xc0170 now all 3 CI test are passing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm use to having the RTC keep accurate time even when debugging. Its understandable to want to halt it when debugging if it is used for scheduling. As long as everyone is happy with this tradeoff, I'm all for it.
@betzw I see that RTC freeze has been removed in your commit. Can you please update the PR title and description and remove the RTC also ? Thanks. |
Done. |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Description
Freeze master timer when debugging enabled and execution hits a breakpoint or gets stop by user.
Status
READY