AnsweredAssumed Answered

I2C Timeout waiting for TXIS flag

Question asked by Howell.Conner on Dec 12, 2016
Latest reply on Dec 13, 2016 by Howell.Conner

ST Community,


I have been trying to get I2C communication working on my STM32L073RZ Nucleo board for some time now, but to no avail. After doing a bit of stepping through the code, it looks as though a HAL_TIMEOUT occurs when the I2C driver executes the I2C_WaitOnTXISFlagUntilTimeout() function. I have looked through the datasheet for this particular micro to figure out why this flag would not be set, but it is not immediately clear and it is controlled by HW. Is there something wrong with my setup? I am using the code that is generated from CubeMX and the only code that I use is the HAL_I2C_Master_Transmit_DMA() function. I am attaching my main.c file as well as my CubeMX setup file. Any hepl would be greatly appreciated.