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

Blocking i2c v1 hangs on stm32f103 when no pullups are used #560

Open
DCNick3 opened this issue Dec 28, 2021 · 0 comments
Open

Blocking i2c v1 hangs on stm32f103 when no pullups are used #560

DCNick3 opened this issue Dec 28, 2021 · 0 comments
Labels
e-stm32 kind-bug Something isn't working

Comments

@DCNick3
Copy link
Contributor

DCNick3 commented Dec 28, 2021

It loops forever here

while self.check_and_clear_error_flags()?.sb() == i2c::vals::Sb::NOSTART {}

Probably because the chip doesn't confirm that it has generated START condition when no pullups are used?

This probably can be handled in a way similar to the way stm32f1xx-hal does it, always having a bound on a busy wait. Maybe even port the implementation 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e-stm32 kind-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants