Skip to main content
Visitor II
June 22, 2023
Solved

IIS328 how to get out of an I2C hang

  • June 22, 2023
  • 2 replies
  • 2558 views

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)

RLee4_0-1687460642025.png

I've tried this with and without SDA framing to no avail.  Any ideas?

    This topic has been closed for replies.
    Best answer by Federica Bossi

    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

    2 replies

    Technical Moderator
    June 23, 2023

    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?

    RLee.4Author
    Visitor II
    June 23, 2023

    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:

    RLee4_0-1687525466907.png

    The problem at hand tho is that once here, how do I get out of it without a power reset?

    Technical Moderator
    June 26, 2023

    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.

    Technical Moderator
    June 29, 2023

    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