2023-06-22 01: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.
2023-06-29 05: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
2023-06-23 05: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?
2023-06-23 06: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?
2023-06-26 05: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.
2023-06-27 02: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?
2023-06-29 05: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