2015-02-19 01:31 AM
I'm a beginner in stm32Fx. I'm using Keil IDE and cubeMX code generator.
I've used I2C1 and I2C3 in my board with stm32f407 microcontroller and used cubeMX for generating initial codes. I've tried to use I2C3 and it didn't work but I2C1 worked correctly.
I've tested cubeMX code generator in my stmf429 discovery board and the same issue. I2C1 worked and I2C3 didn't work.
I have found a website that has very good libraries with drivers but not as complete as stm's, in that libraries all I2Cs work properly.
Does CubeMX code generator has some problems in I2C or not?
Thank you Best regaurds #auto-corrected-dyslexia #cubemx #i2c-stm32f42015-02-23 06:52 AM
In the generated code, check what is made first: I2C clock enable or GPIO configuration.
If I2C clock is enabled before initializing GPIO, try to inverse this order.-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.
2015-03-09 09:16 AM