Hello. Tell me why not work I2C2 in STM32F407Z if selection PF0 & PF1 pins. In initialization all ok, when choosing PB10 & PB11 all work. The following code works with pins PB10 & PB11. Thanks.
GPIO_InitTypeDef G; I2C_InitTypeDef I; RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C2, ENABLE); RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE); G.GPIO_Pin = (GPIO_Pin_0 | GPIO_Pin_1); G.GPIO_OType = GPIO_OType_OD; G.GPIO_PuPd = GPIO_PuPd_UP; ...