Associate II
December 12, 2016
Question
I2C Timeout waiting for TXIS flag
- December 12, 2016
- 2 replies
- 6375 views
Posted on December 12, 2016 at 17:26
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.
Thanks!
Conner
#txis-flag #i2c