Trouble configuring I2C pins in CubeMx
Can someone please explain to me how this is even possible on the same device?


They are the exact same device yet I can not seem to get the same pin config in different projects.
The one project somehow got the PIN Layout where PB6(SCL) and PB7(SDA) is the I2C1 BUT on the other exact same device the I2C1 operates on PB8(SCL) PB7(SDA)?
When I run the I2C1 on the PB8(SCL) PB7(SDA) config it works fine.
When I run the I2C1 on the PB6(SCL) and PB7(SDA) config it does not work.
When I try and reconfig my PB6(SCL) and PB7(SDA) to be PB8(SCL) PB7(SDA) then I can not set PIN8 on the AF register....

