2016-09-01 05:56 AM
Hi,
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?2016-09-01 12:22 PM
Show the code, especially the stuff for the clocks, pins and peripheral.
Check the pin tables in the Data Sheet.