Did you try
I2C_SlaveStatus(() and check for I2C_SSTAT_WR_CMPLT
Slave write transfer complete. Set when a Stop condition is received.
The stauts "I2C_SSTAT_WR_CMPLT" is set when a STOP condition is received?
That would help, i thought it will set when the buffer is complete.
I will try that, thanks bob.
At least the datasheet states so. Please, be so kind to keep us informed.