cancel
Showing results for 
Search instead for 
Did you mean: 

stemwin i2c problem

nohabviktor
Associate
Posted on July 03, 2015 at 10:05

I download the STM32CubeF1 package and compiled the stemwin hello world demo. It is works fine, everything is ok, but I turn on the i2c1 with HAL driver and connect to LM75 temperature sensor. If I put the i2c1 init and temp read after the gui init, its not working. I2c1 is stopped, and exit with timeout everytime. If I put the i2c1 init and temp read before the gui init, its work fine, the result is ok, but If I put the temp read after the gui init, is not working. The i2c2 is working everytime and everywhere.

My hardware is ok, i2c1 is working without stemwin everytime.

I was unable to find anything useful by googling. Thanks in advance for any help and sorry for my english

#stemwin-cube
1 REPLY 1
Amel NASRI
ST Employee
Posted on July 06, 2015 at 11:56

Hello nohabviktor,

What are the flags set for I2C1 in case of issue? 

''The i2c2 is working everytime and everywhere.'': do you mean that you made the test for I2C2 and it is OK?

Check the errata-sheet of you device: may be there is a conflict between I2C1 pins and some other used peripherals.

-Mayla-

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.