I2C SLAVE perform Long clock stretching but 2 units MASTER and SLAVE are configured with the same Frequency
Hi,
i am using 2 units of STM32h743II MCU and I am trying to transfer I2C transactions from master to slave based on I2C_TwoBoards_ComPolling examples.
data is received correctly each time but about my i2c slave unit perform Long clock stretching 1 out of every 4/5 transactions.
MASTER configuration:
hi2c1.init.timing is overridden with:
I2C_GetTiming(HAL_RCC_GetPCLK2Freq(), BUS_I2C_1000k_FREQUENCY)
SLAVE configuration:
hi2c2.init.timing is overridden with:
I2C_GetTiming(HAL_RCC_GetPCLK2Freq(), BUS_I2C_1000k_FREQUENCY)
i am using the basic function:
HAL_I2C_Master_Transmit and HAL_I2C_Slave_Receive using STM32Cube MCU Package for STM32H7 series 1.7.0 version but also tried the latest 1.11.0 version drivers.
75% of the i2c transaction seem as expected with out clock stretching:
but 25% are with with long clock stretching:
Please Advise