Skip to main content
MScho.15
Visitor II
January 31, 2021
Question

Howto implement I2C slave clock stretch timeout.

  • January 31, 2021
  • 1 reply
  • 919 views

Hi,

I like to implement a I2C slave on a STM32G081 with using stm32cubeide.

Basically, it is working.

Sometimes, the system communication stuck while a transaction on the STM32 I2C slave is active.

How can I implement a clock stretch timeout on slave side. Is there any other special error handling needed?

Is there any example regarding this?

My Code:

https://github.com/MS71/ROSZumo/blob/master/fw/stm32/zumo_tb/Core/Src/i2c.c

Maik

This topic has been closed for replies.

1 reply

mk528
Associate
May 24, 2022

Also interested if this is possible.