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 MCUs Other solutions
STM32 MPUs
STM32 MPUs products
STM32 MPUs Boards and hardware tools
STM32 MPUs Software development tools
STM32 MPUs Embedded software and solutions
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Microcontrollers
GNSS positioning
AutoDevKit Ecosystem
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
ST25 NFC/RFID tags and readers
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
ebenetti
Associate
since
2024-01-11
2024-01-11
User statistics
2
Posts
0
Solutions
0
Kudos given
0
Kudos received
View all badges
STMicroelectronics Community
About ebenetti
Options
Report User
User Activity
Posts
Replies
No posts to display.
Re: I2C HAL_BUSY
2024-01-11
Re: I2C HAL_BUSY
2024-01-11
Dear Sheqom,thus the bus hang fixing fuction is the following: HAL_StatusTypeDef ret;uint8_t ok = 1; void reset_I2C(){GPIO_InitTypeDef GPIO_InitStruct = {0};ret = HAL_I2C_Mem_Read(&hi2c1, 0xD1, 0x75, 1, &ok, 1, 1000);if (ret != HAL_OK){HAL_I2C_DeInit...