HAL_I2C_ErrorCallback occurred randomly in I2C communication
Hi,
Currently, we are working with STM32L476JGY6TR MCU.
We are facing HAL_I2C_ErrorCallback - 0x00000004 error randomly while communicating with MCU.
We are communicating with the MCU Frequently with particular time intervals. In this scenario, some of our communication to MCU fails and shows the above ErrorCallback in MCU, and The Slave I2C gets reset.
May I know the reason for HAL_I2C_ErrorCallback occurs and NACK receives?
How could I debug this issue?
Configuration :
We configured i2c-2 as a slave in MCU and communicated from the host with the 400kHZ frequency.
We use a 4.7k ohm pull-up resistor with a 1.8V source.
We use the HSI Internal oscillator.
Kindly help to solve this.
Thank you!
