Skip to content

Conversation

microbit-carlos
Copy link
Contributor

The DAPLink controlled reset button performs a target reset via SWD, and the CoreDebug trace enable bit seems to be cleared while the DWT->CTRL cycle count enable bit is not.

Fixes #179 (comment).

The DAPLink controlled reset button performs a target reset via
SWD, and the CoreDebug trace enable  bit seems to be cleared
while the DWT->CTRL cycle count enable bit is not.

#179 (comment)
@dpgeorge dpgeorge merged commit 90b9b7d into master Apr 22, 2024
@dpgeorge dpgeorge deleted the ticks_cpu branch April 22, 2024 04:36
@dpgeorge
Copy link
Collaborator

Nice find! I tested this and it fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected CPU cycle count with time.tick_cpu()

2 participants