I2C TCR flag
hi,
The datasheet says "In this mode, the TCR flag is set when the number of bytes programmed in NBYTES is transferred"
Does this mean that the flag will be set when the data is transferred from TXDR to shift register, Or, the flag will be only set if there is an ack from the slave after the data in the TXDR is sent ?
/* Send Memory Address */
hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress);
I get a timeout randomly here in function I2C_RequestMemoryWrite(). Please note that no ErrorCode is set other than HAL_I2C_ERROR_TIMEOUT.
/* Wait until TCR flag is set */
if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, Tickstart) != HAL_OK)
{
