embassy icon indicating copy to clipboard operation
embassy copied to clipboard

Blocking i2c v1 hangs on stm32f103 when no pullups are used

Open DCNick3 opened this issue 3 years ago • 0 comments

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 :thinking:

DCNick3 avatar Dec 28 '21 13:12 DCNick3