# I2C Wire Disconnection Crash

**URL:** <https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496>\
**Category:** Peripherals\
**Tags:** evb-amb82, rtl8735b\
**Created:** [November 7, 2025, 5:34am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496 "2025-11-07T05:34:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 7, 2025, 5:34am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496/1 "2025-11-07T05:34:09Z")

</div>

### 

- **Problem** : The application crashes when a wire is disconnected from the I2C bus.

- **Root Cause** : The I2C driver has known bugs (as reported by the community), and likely lacks robust error handling for physical disconnection or bus faults.

- **Impact** :

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [November 10, 2025, 8:57am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496/2 "2025-11-10T08:57:29Z")

</div>

Hi @DevomechSolutions

Do you mind sharing the logs when the application crashes? Did you encounter a hard fault?

We do have a watchdog feature in the latest prerelease SDK 4.1.0-build20251027 to do a reset when the application crashes. You can try to see if it works for you.

---

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 11, 2025, 7:42am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496/3 "2025-11-11T07:42:42Z")

</div>

It’s a hard fault condition. By using a WDT, we can reset the MCU and generate I2C bus error using some fault LEDs, but there are multiple I2C sensors connected to the bus, and we cannot differentiate which sensor triggered the WDT.

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [November 11, 2025, 8:20am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496/4 "2025-11-11T08:20:06Z")

</div>

Hi @DevomechSolutions,

Thank you for your update.

I will try to reproduce the issue on my end. Do you mind sharing which I2C sensors are currently connected to the bus? If possible, you may also include a photo of your setup for reference.

Thank you.

---

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 11, 2025, 8:34am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496/5 "2025-11-11T08:34:11Z")

</div>

secondary MCU (Stm32l4) that is handling multiple sensors are connected to the I2C bus. There is no sensor directly connected. What we want to achieve is that if the MCU gets disconnected from the Primary MCU (amb82) in real-time, the other secondary MCUs don’t gets affected.

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [November 14, 2025, 1:22am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496/6 "2025-11-14T01:22:56Z")

</div>

Hi @DevomechSolutions

Sorry for the late reply, and thank you for your sharing.

Let me test at my side and get back to you at the soonest.

In the meantime, you may try adding pull-up resistors (4.7 kΩ – 10 kΩ) to help maintain stable I²C signal levels. The pull-ups can be placed on the shared I²C bus lines (SCL and SDA).

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [November 20, 2025, 8:36am UTC](https://forum.amebaiot.com/t/i2c-wire-disconnection-crash/4496/7 "2025-11-20T08:36:41Z")

</div>

Hi @DevomechSolutions,

Do let us know if adding a pull up resistor helps to fix the crash issue.

Thank you.
