2025-01-12 07:43 PM
Hi there,
I drove 4 SHT4x by STM32G473VE and used the HAL_I2C_Master_Transmit() and HAL_I2C_Master_Receive() to write and read the sensors.
Normally, everything is well.
However, if I
the program will probably run into the following dead loop:
I don't know why this happened, and how I can recover from this error state.
Thank you!
2025-01-13 02:36 AM
Hello @Junde
Have you tried checking the device with the HAL_I2C_IsDeviceReady() API after unplugging and replugging it?
Could you provide the data transmission trace using the logic analyzer?
2025-01-13 03:08 AM
Previous discussion on recovering from problems on the I2C bus: