I2C-22 Several masters on one bus¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | planned | mid, depends on NET-7, CFG-5 |
Looks at. Device roles (library).
What it catches. Two or more devices that can act as master (MCUs, SoCs, PMICs with host mode, bus analysers) on one bus.
Why it matters. I2C supports multi-master through arbitration on SDA and clock synchronisation, but only if every master's controller implements it and the firmware handles arbitration loss and bus-busy. Many MCU peripherals and nearly all bit-banged masters do not; a lost arbitration then corrupts a transfer in progress. Two MCUs each "owning" the bus at different times (a supervisor and an application processor) is the usual shape.
Example. An application MCU and a small supervisor both polling a PMIC: works until both start a transfer within the same microsecond, then one of them sees garbage once a day.
How to check. Count master-capable devices per bus from the library role.
Fix. One master per bus, with a bus switch or a mailbox between controllers; or verify multi-master support on every controller and plan the firmware for it.
References. UM10204 §3.1.7 (clock synchronisation), §3.1.8 (arbitration); Wikipedia, I²C "Arbitration using SDA"; AoE3 chapter 14.