cancel
Showing results for 
Search instead for 
Did you mean: 

impacts of IIC error injection with IIS2DLPC

BBBBBB
Visitor
For special test case, that directed connected IIC's SCL(LUX_TILT_SCL) to GND and kept for 5mins, will this action hurt or damage IIS2DLPC?
IIC worked with 100kbps.
Work with IIC.
 
We found that after this action/error injection:
Sometimes, the sensor cannot response with IIC ACK/no response from sensor.
Sometimes, the sensor responses with incorrect axis data.
BBBBBB_0-1753955870719.png

 

5 REPLIES 5
TDK
Super User

Grounding SDA or SCL will not hurt the chips, but it will prevent communication from taking place. SDA/SCL are driven with open drain, so pulling them down doesn't cause hardware issues.

Use a logic analyzer to see what's happening on the line.

If you feel a post has answered your question, please click "Accept as Solution".
BBBBBB
Visitor

With logic analyzer, after 5mins ground SCL, the chip randomly cannot response with IIC even remove SCL grounding.

No response could not recover even cold reboot the chip.

BBBBBB_0-1753971352634.png

 

 

Andrew Neil
Super User

On recovering from I2C errors:

https://community.st.com/t5/stm32-mcus-products/stm32h745i-i2c-recovery-after-addressing-nonexistent-device/m-p/660263/highlight/true#M240602

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
BBBBBB
Visitor

I wound like to confirm whether these 5min SCL grounding cause IIC slave(sensor) stuck?

I2C-bus specification and user manual

BBBBBB
Visitor

For another abnormal behavior after 5mins grounding SLC, the axis data was incorrect, confirmed with logic analyzer.

When sensor was steady state on a horizontal surface, X-axis reached 1000mg. X-axis should be around 0mg.