Skip to main content
风正豪.1
Associate II
February 25, 2023
Solved

Problems with the F103 hardware I2C

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.

Translated with DeepL

This topic has been closed for replies.
AScha.3
AScha.3Best answer
Super User
February 25, 2023

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. :)

If you feel a post has answered your question, please click on " Best Answer ".

5 replies

Foued_KH
ST Employee
February 25, 2023

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.
Tesla DeLorean
Guru
February 25, 2023

As I recall it was very fussy at initialization, and would latch busy.

Unnecessarily complex implementation. ​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AScha.3
Super User
February 25, 2023

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 :) )

If you feel a post has answered your question, please click on " Best Answer ".
Tesla DeLorean
Guru
February 25, 2023

On more recent STM32 I've used HAL base code to manage OLED displays continuously for months on end without issues.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AScha.3
AScha.3Best answer
Super User
February 25, 2023

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. :)

If you feel a post has answered your question, please click on " Best Answer ".