Skip to main content
DSah
Visitor II
April 2, 2019
Question

main loop hangs due to "while (HAL_I2C_GetState(&I2cHandle) != HAL_I2C_STATE_READY)"

  • April 2, 2019
  • 0 replies
  • 450 views

Hello,

i am using STM32L053 (slave) and STM32F103(master) for I2C communication. When i look in the HAL for I2C there is a while loop "while (HAL_I2C_GetState(&I2cHandle) != HAL_I2C_STATE_READY)" where i have to wait all the time for the data being send or received and i can't do anything else.

How can i get rid of this wait inside this while loop ?

Thanks in advance

This topic has been closed for replies.