Question
STM32L053 I2C size managment error
Posted on November 04, 2014 at 17:13
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 #i2c-stm32l0