Skip to content
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

cortex-m: reset_halt: just warn about invalid T-bit, don't automatically fix #1559

Merged
merged 1 commit into from
May 22, 2023

Conversation

flit
Copy link
Member

@flit flit commented May 21, 2023

PyOCD previously would automatically fix an invalid (cleared) XPSR.T bit after a halting reset. This might be useful in some cases, and some debuggers like Segger J-Link will do this. But the actual value is questionable, since the user still needs to address the root cause such as fixing the vector table.

Thus, this PR changes it so that pyocd only logs a warning if the T-bit is cleared after a halting reset. The core will likely go immediately into lockup as soon as it is resumed.

Also fixed some type errors.

@flit flit merged commit 73b9ce9 into pyocd:main May 22, 2023
21 checks passed
@flit flit deleted the bugfix/move_t_bit_fix branch May 22, 2023 13:12
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.

None yet

1 participant