1 Known Issues for the MCC Melody TWI PLIB Driver v7.1.6
Issue | Issue Title | Affected implementation(s) | Issue Description | Workaround |
---|---|---|---|---|
M8PD-12558 | The TWI host driver causes the I2C bus to lock up due to bus collisions on a TWI bus with multiple clients | Host Driver | The issue involves bus collisions when multiple I2C client devices are connected on the same I2C bus. The I2C host driver fails to report the bus collision error and instead indicates that the bus is busy indefinitely. Upon investigation, it was found that the driver performs certain unsafe read-modify-write operations on special registers like MSTATUS, particularly when clearing status or interrupt flags. | The following points summarize the necessary fixes:
Replace usages of |= or &= like
in the code with a combination of bit wise AND and OR to ensure only the intended bits are modified: For example:
|