Hello @lingyunzhi,
You did not specify the MCU nor the drivers.
But anyway, this is application-dependant.
There are other events (SDK) like RX_REQ which should be processed before EVENT_STOP is detected.
I2C_SLAVE_EVENT_RX_FULL = 0x00U,
I2C_SLAVE_EVENT_TX_EMPTY = 0x01U,
I2C_SLAVE_EVENT_TX_REQ = 0x02U,
I2C_SLAVE_EVENT_RX_REQ = 0x03U,
I2C_SLAVE_EVENT_STOP = 0X04U,
BR, Daniel