wokwi-features
wokwi-features copied to clipboard
STM32 keeps SDA low.
trafficstars
It was mentioned in the Discord channel that the SDA was kept low after a I2C read with HAL_I2C_Master_Receive(). After that, no more I2C communication is possible.
It turns out that the same bug happens with Arduino functions as well. My test projects:
- Arduino Uno: https://wokwi.com/projects/416454390210677761
- Rasperry Pi Pico: https://wokwi.com/projects/416454423403356161
- ESP32: https://wokwi.com/projects/416454431364149249
- STM32 small board: https://wokwi.com/projects/416454402880623617
- STM32 large board: https://wokwi.com/projects/416454414236703745
The I2C signals for the Arduino Uno are perfect:
Both STM32 boards show something different:
The Master gives an ACK for that last databyte and SDA stays low.