cancel
Showing results for 
Search instead for 
Did you mean: 

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

DSah
Associate

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

0 REPLIES 0