-
Notifications
You must be signed in to change notification settings - Fork 171
Add DCB::enable_trace() and DCB::disable_trace() #111
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
Also, a PR for the
EDIT2: Got it working, had two different versions of |
Increase version to 0.5.7 so stm32f103xx-hal can depend on this
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.
Hi, good catch!
I will approve for now but wait a bit for more comments from @rust-embedded/cortex-m if they want to change something.
It's a read/modify/write but it takes a mut ref, so that's ok. I think I'd prefer |
👍 for the feature, but I would also really prefer a |
@thejpster @adamgreig Just moved the the shift to the constant @adamgreig The version bump is needed by japaric/stm32f103xx-hal/pull/94, but I am open for other suggestions to resolve that. |
Oh I see, in ARMv6-M it's DWTENA but in ARMv7-M it's TRCENA. That's fine. Could you use something like For the version number, it still shouldn't be updated in this PR - once this PR is landed and we're ready to cut a new release (which can be essentially right away) there will be a new PR for the new release (updating the changelog too), and once that's published on crates.io your PR to stm32f103xx-hal will be possible to merge. |
Thanks! LGTM, I'll approve but I'll let @korken89 re-approve and merge if they're happy since they reviewed it earlier. |
@adamgreig Here you go :) Who is going to to handle the PR for the new version? At my location its quite late and I need to get up early tomorrow. So no new commits/comments from me for the next 18h to 20h. |
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.
LGTM, too.
Thanks for the extra checks and changes all! bors r+ |
111: Add DCB::enable_trace() and DCB::disable_trace() r=korken89 a=kellerkindt This is required for the cycle counter of DWT to work, if the power supply has been unplugged since the last time it has been flashed japaric/stm32f103xx-hal/issues/76. See bit 24 here http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/CEGHJDCF.html Corresponding PR in stm32f103xx-hal: japaric/stm32f103xx-hal/pull/94 Co-authored-by: kellerkindt <[email protected]> Co-authored-by: Michael Watzko <[email protected]>
Build succeeded |
114: Release 0.5.7 r=japaric a=kellerkindt As mentioned in /pull/111 (#111 (comment)), releasing 0.5.7 will allow the merge of japaric/stm32f103xx-hal/pull/94 which then allows japaric/stm32f103xx-hal/issues/76 to be resolved. Co-authored-by: Michael Watzko <[email protected]> Co-authored-by: Jorge Aparicio <[email protected]>
This is required for the cycle counter of DWT to work, if the power supply has been unplugged since the last time it has been flashed japaric/stm32f103xx-hal/issues/76.
See bit 24 here http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/CEGHJDCF.html
Corresponding PR in stm32f103xx-hal: japaric/stm32f103xx-hal/pull/94