Hi all, I had the same problem and found that if CubeMX autogenerates the code then you'll need to add 'GPIO_InitStruct.Alternate = GPIO_AF6_I2C1;' to the GPIO pin struct definition in the 'HAL_I2C_MspInit' function. This is because if you use PA9 an...
Posted on July 05, 2016 at 00:17Hi Kureigu I was wondering if you were ever able to figure out what was wrong I've been having issues with the i2c lines and I seem to be running into a similar issue Cheers Sam