2023-02-24 06:42 PM
A year ago I heard from a friend that there was a problem with the STM32F103's hardware I2C. All the ones I found on the internet said there was no problem with the hardware I2C of the ST, but not the F103 series. So, I have two questions. First, I want to know if the hardware I2C of the F103 series still has problems now. Second, what is the problem with the hardware I2C of the F103 that was once circulated and how to deal with it.
Solved! Go to Solution.
2023-02-25 09:15 AM
yes, on H7A3 board with I2C temp.+humudity sensor and an eeprom onboard, about > 500 boards going to customers, most run 24/7 , 2 or 3 boards make curious things on I2C, but only sometimes. (dont know why.) so: usually working correct. :)
2023-02-25 03:52 AM
Hello @风 正豪 ,
If you are facing some erratic behavior on STM32, do not forget to check Errata sheet of the device. There are few points related to I2C interface.
STM32F101xC/D/E, STM32F103xC/D/E device errata - Errata sheet
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-02-25 04:52 AM
As I recall it was very fussy at initialization, and would latch busy.
Unnecessarily complex implementation.
2023-02-25 07:42 AM
btw - i got this "busy forever" also, on H743 .
according to the recommendations of the more experienced i tried writing a very simple I2C in software,
--- until now no more errors on I2C . (although I have a rather problematical timing : driving it with 600..700 kHz clock :) )
2023-02-25 08:16 AM
On more recent STM32 I've used HAL base code to manage OLED displays continuously for months on end without issues.
2023-02-25 09:15 AM
yes, on H7A3 board with I2C temp.+humudity sensor and an eeprom onboard, about > 500 boards going to customers, most run 24/7 , 2 or 3 boards make curious things on I2C, but only sometimes. (dont know why.) so: usually working correct. :)