2019-05-15 02:07 AM
For the HAL Library file "stm32f4xx_hal_i2c.c", version V1.4.0, I see the macro "#define I2C_TIMEOUT_BUSY_FLAG " was added.
Why was this timeout of 10 seconds added? Doesn't 10 seconds sound too much for a blocking call on the I2C bus?
Solved! Go to Solution.
2019-06-13 07:14 AM
Hello,
The patch STM32CubeF4 V1.24.1 is now available on the ST web page.
Best Regards,
Imen
2019-05-15 03:33 AM
> V1.4.0
The latest released version of STM32F4 HAL is v1.24.1, where I2C_TIMEOUT_BUSY_FLAG is defined as:
#define I2C_TIMEOUT_BUSY_FLAG 25U /*!< Timeout 25 ms */
25 milliseconds, not seconds.
2019-05-15 05:30 AM
Hello,
You are using an old version of STM32CubeF4 package.
In the latest version STM32Cube_FW_F4_V1.24.1, the macro is defined as follow:
#define I2C_TIMEOUT_BUSY_FLAG 25U /*!< Timeout 25 ms */
Pleas update the CubeF4 package to use latest one.
Regards,
Imen
2019-05-15 06:41 PM
Thank you for your answers. I am well aware about the latest version and timeout inside, however, I am still seeking information on why the timeout was 10 sec in version 1.4.0. Any help would be appreciated.
2019-05-20 05:39 AM
> The latest released version of STM32F4 HAL is v1.24.1,
Where is it available? the download page still shows 1.24.0
thanks,
- pa
2019-05-20 06:14 AM
You are right, the patch is not available on the ST web page. I will raise this internally for fix.
You can download the patch STM32CubeF4 v1.24.1 from STM32CubeMx.
2019-06-13 07:14 AM
Hello,
The patch STM32CubeF4 V1.24.1 is now available on the ST web page.
Best Regards,
Imen