IIS328 how to get out of an I2C hang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-22 1:19 PM
I'm using a IIS328DQ on an I2C bus @400KHz
Every now and again, the part hangs up and won't talk to me. The only way out that I've found is a power reset.
Attempting to follow https://community.st.com/t5/mems-sensors/if-hang-up-i2c-interface-of-the-lis2dh/m-p/157456 I have run out an SCL with like 20 pulses (as shown below)
I've tried this with and without SDA framing to no avail. Any ideas?
Solved! Go to Solution.
- Labels:
-
Accelerometers
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-29 5:32 AM
Ciao @RLee.4 ,
We don't have enough information to understand what could be the problem, however if giving 20 pulses nothing changes, the only way is a power reset.
If my reply answered your question, please click on Accept as Solution at the bottom of this post. This will help other users with the same issue to find the answer faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-23 5:09 AM
Hi @RLee.4 ,
It could be a problem related to electrical lines. Could you please share some acquisitions with the oscilloscope instead of the digital analyzer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-23 6:05 AM
I can get you some scope shots Monday when I'm back in front of hardware but...
These are point to point lines (micro to the part) with 2.2K pullups on them thusly:
The problem at hand tho is that once here, how do I get out of it without a power reset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-26 5:34 AM
Hi @RLee.4 ,
Thanks for the schematic, you could try to put a bigger value of R54 and R55.
Let me know if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-27 2:14 PM
Looking at the I2C lines, I've got everything from really nice to OMG what a mess so I can, on this board, see where I'm hanging the part.
The question I've got here is this: What am I supposed to do to get the part out of this state without a power reset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-29 5:32 AM
Ciao @RLee.4 ,
We don't have enough information to understand what could be the problem, however if giving 20 pulses nothing changes, the only way is a power reset.
If my reply answered your question, please click on Accept as Solution at the bottom of this post. This will help other users with the same issue to find the answer faster
