embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
5.15k stars 713 forks source link

stm32 i2cv1 async regression, silently reads back 0xFF #2906

Open MabezDev opened 4 months ago

MabezDev commented 4 months ago

Will need to do a bisect to find the offending commit, but essentially somewhere between the crates.io release and current main there is a regression where i2c doesn't fail it just reads back 0xFF. This was produced on an F2 board, but it more than likely applies to other chips with i2cv1.

Blocking of course works fine.

jamesmunns commented 3 months ago

Might want to reference some of the PRs mentioned here: https://github.com/embassy-rs/embassy/issues/2372

SpencerSharkey commented 1 month ago

i'm seeing the same behavior with i2cv2. blocking works, async doesn't- but only for pmbus devices in my experience so far