AnsweredAssumed Answered

STM32F103RC - I2C2 works but I2C1 doesnt work with the same sensor

Question asked by karol.karol on Sep 1, 2016
Latest reply on Sep 1, 2016 by Clive One
I have a strange problem with stm32f103RC. If I connect mpu-6050 to PB.10, PB.11 (I2C2) it works perfectly, but when I connect the same mpu-6050 to PB.6, PB.7 (I2C1) it doesnt work. The code is the same, I add RCC_APB1Periph_I2C1 to clock enable, replace all I2C2 with I2C1, configure pins also as GPIO_Mode_AF_OD. Any idea what go wrong?