STM32G474RE - I2C always busy flag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-20 4:56 AM
I have generated the I2C code using cube-mx. My slave device is I2C based DIGI-POT.
when I check with HAL_I2C_IsDeviceReady() function - it is always coming busy flag.
These below are the Hardware and Firmware checks I have done:
HW checks -
- DIGIPOT is getting 5v voltage.
- Checked the pull-up resistors values - fine - using 4.7kohm
Fw checks -
1. address - 0101 1000 - 0x58
2. Read state of SCL and SDA pins - Both are logic high.
3. Voltage on the both the pins - 3.3v
4.Some people are facing same issue - suggested in the internet to do first I2C clock enable and then GPIO init - Not working this as well. This is linkhttps://electronics.stackexchange.com/questions/272427/stm32-busy-flag-is-set-after-i2c-initialization.
Solved! Go to Solution.
- Labels:
-
I2C
-
STM32G4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-31 4:22 AM
I found the issue , it is handler issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-22 10:05 PM
Is anybody have clue on this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-31 4:22 AM
I found the issue , it is handler issue
