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

[GD32] Fix I2C Hangups #273

Merged
merged 3 commits into from
Apr 16, 2021
Merged

Conversation

KarlK90
Copy link
Contributor

@KarlK90 KarlK90 commented Apr 14, 2021

As mentioned in #266 there where random hangups using the I2C peripheral. Moving the DMA enable sequence back into the init code and re-adding the spurious bus error detection code from stmf4 error fixed these. I didn't verified what change fixed the issue but my guess would be that enabling the DMA request from an IRQ context and just before starting a transfer isn't the best idea.

@KarlK90 KarlK90 changed the title Move DMA enable to init code, re-add spurious bus error clearance [GD32] Fix I2C Hangups Apr 14, 2021
@fpoussin fpoussin self-assigned this Apr 16, 2021
@fpoussin fpoussin merged commit 9dbe061 into ChibiOS:chibios-20.3.x Apr 16, 2021
@fpoussin
Copy link
Member

Thanks!

@KarlK90 KarlK90 deleted the gd32vf103-i2c-fix branch February 23, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants