Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Analog and audio
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Other: hardware
Other: software
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
Oleg1
Associate II
since
2018-11-03
2023-06-14
User statistics
3
Posts
0
Solutions
0
Kudos given
0
Kudos received
STMicroelectronics Community
About Oleg1
Options
Report User
User Activity
Posts
Replies
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.
2018-11-03
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; ...
Re: 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.
2018-11-03
Checked PF0 & PF1 in mode GPIO_IN + GPIO_PuPd_UP, when reading I get 1 & 2 if PF0 or PF1 connect to GND the signal changes to 0Port inputs not involved in the scheme
Re: 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.
2018-11-03
Crystal 32.768 connected to PC14-PC15 (pin 8-9)Crystal 8 Mhz connected to PH0-PH1 (pin 23-24)chip - STM32F407ZET6