Closed microbit-carlos closed 2 months ago
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 https://github.com/microbit-foundation/micropython-microbit-v2/issues/179#issuecomment-2059077656.
Nice find! I tested this and it fixes the issue.
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 https://github.com/microbit-foundation/micropython-microbit-v2/issues/179#issuecomment-2059077656.