cancel
Showing results for 
Search instead for 
Did you mean: 

Howto implement I2C slave clock stretch timeout.

MScho.15
Associate

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

1 REPLY 1
mk528
Associate II

Also interested if this is possible.