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: ADIv5 handling issues #1826

Merged
merged 3 commits into from
May 20, 2024
Merged

Fix: ADIv5 handling issues #1826

merged 3 commits into from
May 20, 2024

Conversation

dragonmux
Copy link
Member

Detailed description

This PR fixes a couple of bugs that were accidentally introduced a while back in the ADIv5 implementation, and provides a workaround for the ST-Link firmware not supporting multi-drop at all, unlike what the release notes advertise.

The first of the regressions that this fixes is in the ADIv5 memory I/O code where the handling for TAR wrap-around got botched by typo in aa9bb48 (as much as the keys are right next to each other, e is not 3!).

The second regression was accidentally introduced in 44422c9 when SWD multi-drop was refactored and rewritten - most likely due to an oversight.

The ST-Link component of this PR partially fixes/alleviates #1813 but does not resolve the issue laid out in that issue.

Your checklist for this pull request

Closing issues

dragonmux and others added 3 commits May 18, 2024 18:29
…rect TAR wrap-around behaviour

Co-Authored-By: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
…aptors, and switched to issuing a warning when attempting to re-select a multi-drop part
@dragonmux dragonmux added Bug Confirmed bug Regression Bug caused by a regression labels May 18, 2024
@dragonmux dragonmux added this to the v2.0 release milestone May 18, 2024
@dragonmux dragonmux requested a review from esden May 18, 2024 17:50
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 e1b4b4e into main May 20, 2024
24 checks passed
@dragonmux dragonmux deleted the fix/adiv5-handling-issues branch May 20, 2024 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bug Regression Bug caused by a regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants