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

Fix: remote protocol SWD hangs #1553

Merged
merged 8 commits into from
Jul 21, 2023
Merged

Fix: remote protocol SWD hangs #1553

merged 8 commits into from
Jul 21, 2023

Conversation

dragonmux
Copy link
Member

Detailed description

This PR addresses a regression introduced in PR #1531 which forgot that the SWD bitbanging code needs to deal with target_clk_divider = UINT32_MAX fully. The effect of this mistake was that SWD would "hang" and soft-crash the probe.

We've also taken the opportunity to clean up the SWD remote protocol implementation the same as we did the JTAG implementation, saving a couple of bytes of Flash from that routine.

Your checklist for this pull request

  • I've read the Code of Conduct
  • I've read the guidelines for contributing to this repository
  • It builds for hardware native (make PROBE_HOST=native)
  • It builds as BMDA (make PROBE_HOST=hosted)
  • I've tested it to the best of my ability
  • My commit messages provide a useful short description of what the commits do

Closing issues

@dragonmux dragonmux added Bug Confirmed bug BMP Firmware Black Magic Probe Firmware (not PC hosted software) Regression Bug caused by a regression labels Jul 20, 2023
@dragonmux dragonmux added this to the v1.10 milestone Jul 20, 2023
@dragonmux dragonmux requested a review from esden July 20, 2023 10:09
@dragonmux dragonmux force-pushed the fix/remote-protocol-swd-hangs branch from 62f5bb6 to 38bee56 Compare July 20, 2023 10:10
Copy link
Member

@esden esden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@esden esden merged commit 405282c into main Jul 21, 2023
6 checks passed
@dragonmux dragonmux deleted the fix/remote-protocol-swd-hangs branch July 21, 2023 18:44
@dragonmux dragonmux mentioned this pull request Aug 19, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BMP Firmware Black Magic Probe Firmware (not PC hosted software) Bug Confirmed bug Regression Bug caused by a regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants