AnsweredAssumed Answered

I2C interrupt mode only works once?

Question asked by jiang.peng on Jun 21, 2016
Latest reply on Jun 27, 2016 by Amel N
I follow the example of the I2C_TwoBoards_ComIT
I have I2C host to send data to the STM32L4 board.
The I2C slave has below logic
HAL_I2C_Slave_Receive_IT(&I2cHandle, (uint8_t *)aRxBuffer, RXBUFFERSIZE);
In the HAL_I2C_SlaveRxCpltCallback, I set a flag to allow main loop to process the data.
But it only works once, and the second time, it cannot receive data and cannot trigger the interrupt.
May I know any other setting need to make I2C slave recieve multiple time?