HAL_I2C_MasterTxCpltCallback does not report transfer size/count
Hello,
I'm new to the forum.
I have a Nucleo-L476RG board and I use Keil with Keil::STM32L4xx_DFP 2.1.0 to program it.
During the debug I notice that after the HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, ...) function call the hi2c->XferSize and hi2c->XferCount are correctly set.
But in the HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c) callback, if I try to access to hi2c->XferSize and hi2c->XferCount are both 0x0000. So I can't retrieve the real bytes sent?
If I do the same work with the UART dirver all is ok. Why this different behavior?
Thanks in advance,
Antonio
