AnsweredAssumed Answered

STM32L053 I2C size managment error

Question asked by hischier.thierry.001 on Nov 4, 2014
Latest reply on Feb 26, 2015 by Montassar BEN ROMDHANE
Hello everybody.

I hope someone could help...

I work with a STM32L053 and should communicate over I2C with a sensor. I checked the delivered examples from the STM32CubeL0 and can initialise the I2C. But when I send the first command, my program ends always on this line

/* Wrong size Status regarding TCR flag event */
      hi2c->ErrorCode |= HAL_I2C_ERROR_SIZE;
      HAL_I2C_ErrorCallback(hi2c);

Probably someone has any ideas...

I have attached the code

Outcomes