interrupt is not working for I2C
Hello,
we are using the I2C in STM32L431 as below configuration
- STM32L431RCT6 as Master in I2C bus
- STM32L431RBT6 as Slave in I2C bus
in all .ioc file we enabled the event and error interrupt for both controllers
Master will send query to slave for some data after every 1 sec.
if slave does only I2C communication, then the query is received by slave. but if slave does some other tasks also then query is not received by slave.
during testing we found that Slave is not getting the interrupt. HAL_I2C_SlaveRxCpltCallback() is not called.
Pls help me to solve it.
my code of slave(I2C_S_Reply) and master(I2C_M_Read) is attached with the
