2015-07-03 01:05 AM
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-cube2015-07-06 02:56 AM
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.