Software I2C problem with two slaves if one fails

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
Tuxford
Posts: 26
Joined: Fri Nov 06, 2020 3:28 pm
Has thanked: 4 times
Been thanked: 4 times

Software I2C problem with two slaves if one fails

Post by Tuxford »

I have a board based on STM32F103VCT6 where two slaves are connected to I2C. One is FM24C64 with address 0xA0, other is TLV493D-A186 with address 0xBC. I have observed a problem when second is absent. Driver tries to init this chip but fails because of temporary absence. After the failure first slave fails to work even it has worked before.

Question. Are there needed some reinitialization of the I2C driver or may be something else?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Software I2C problem with two slaves if one fails

Post by Giovanni »

Hi,

Not sure about the cause of what you are observing, you may try to stop and restart the driver and see if it helps.

Giovanni
Post Reply