Associate III
August 31, 2022
Question
I2C Slave freezes SCL line
- August 31, 2022
- 5 replies
- 4327 views
Hello,
i tried to implement a I2C slave device on a STM32L486.
It is working, but sometimes (after a few seconds, minutes or even hours) it freezes/blocks the SCL line. So the master device (also a STM32) generates a error.
I have no glue what happens here. We tried to send stop condictions by the master, toggle scl and sda line, but nothing helped. after a rest of the Slave device everything works fine again.
I followed an cubemx example. My source code is attached.
Any idea how to solve this?
thank you so much
Max