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 CRC DR read if peripheral clock is disabled #83

Merged
merged 2 commits into from
Sep 18, 2021

Conversation

vintagepc
Copy link
Owner

@vintagepc vintagepc commented Sep 15, 2021

Description

Fix for #82

Behaviour/ Breaking changes

CRC DR now returns 0xFFFFFFFF 0 if the clock is disabled.

Other

Fixes a memory leak in the IWDG reset function.

Linked issues:

@vintagepc vintagepc requested a review from milosfec September 15, 2021 22:20
}
else
{
return 0xFFFFFFFFU;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I could have mentioned it in the bug report, we need to invert the result (it's done in the implementation I wrote within the bug report). Function is returning 0xFFFFFFFF because CRC DR returns 0 :)

@vintagepc vintagepc merged commit 0aea92d into MINI404 Sep 18, 2021
@vintagepc vintagepc deleted the 82-crc-check-clock branch September 18, 2021 01: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.

[BUG] HW CRC32 calculation works even without clock enabled
2 participants