Associate III
December 11, 2019
Question
Bug Report : H743 HAL_I2C_Transmit_IT() respond incorrectly when it receives NAK.
- December 11, 2019
- 4 replies
- 4523 views
The HAL_I2C_Transmit_IT() in the STM32H7 HAL respond incorrectly, when the I2C bus returns NAK.
In case of NAK, the I2C error interrupt must be triggered immediately, but it is triggered few seconds later. This is wrong response.
The attached zip file contains a demonstration project for the Nucleo H743ZI. Once you run, you will see the Start message, and then error message. While the error message have to be displayed immediately, you have to wait several second.
Note : You must pull up the I2C1 bus (PB8, PB9) correctly, and must not connect device on the I2C address 0x00.
I have tested this program with following environment.
- Ubuntu 16.04 LTS
- CubeIDE v1.1.0
Please check.