Software I2C problem with two slaves if one fails

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

Software I2C problem with two slaves if one fails

Postby Tuxford » Mon Sep 27, 2021 1:44 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Software I2C problem with two slaves if one fails

Postby Giovanni » Mon Sep 27, 2021 4:01 pm

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


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 6 guests