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: STM32L4 DBGMCU handling #1895

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Fix: STM32L4 DBGMCU handling #1895

merged 1 commit into from
Aug 16, 2024

Conversation

dragonmux
Copy link
Member

Detailed description

In this PR we fix an issue with the new DBGMCU handling for the STM32L4-like parts. In the original PR for this, #1882, we accidentally mishandled the device family checks when going to configure the DBGMCU, using the parameter version of device rather than the priv structure version. This results in a NULL dereference and a crash on attach.

Your checklist for this pull request

Closing issues

Fixes #1787, closing the final item in the issue.

@dragonmux dragonmux added Bug Confirmed bug Regression Bug caused by a regression labels Aug 15, 2024
@dragonmux dragonmux added this to the v2.0 release milestone Aug 15, 2024
@dragonmux dragonmux requested a review from esden August 15, 2024 10:32
…t the parameter in `stm32l4_configure_dbgmcu()` when configuring the DBGMCU
@dragonmux dragonmux force-pushed the fix/stm32l4-dbgmcu-handling branch from 43d773e to ac2605c Compare August 16, 2024 20:02
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 ac2605c into main Aug 16, 2024
26 checks passed
@dragonmux dragonmux deleted the fix/stm32l4-dbgmcu-handling branch August 16, 2024 23:12
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.

unknown device with Designer 0x20 Part ID 0x4950
2 participants