Hi,
As we spoke I wrote the code below, where I send the message to the slave and immediately after it I set the SLVEN bit and unset the MSTEN bit. Is it ok?
Because since I added the line: I2C_CFG->CFG = I2C_CFG_MSTEN(0) | I2C_CFG_SLVEN(1); the slave stopped receiving the I2C message?
res = I2C_MasterStart(I2C_CFG, address, kI2C_Write);
if (res != kStatus_Success) return res;
res = I2C_MasterWriteBlocking(I2C_CFG, buffer, length, 4);
if (res != kStatus_Success) return res;
res = I2C_MasterStop(I2C_CFG);
if (res != kStatus_Success) return res;
I2C_CFG->CFG = I2C_CFG_MSTEN(0) | I2C_CFG_SLVEN(1);
Thanks
Ariel