I2C bus recovery
I wonder how useful would it be to add a bus recovery mechanism to the software I2C implementation. It would be something similar to what is discussed here: https://github.com/esp8266/Arduino/issues/1025
The particular use case is when either the slave or the master get reset in the middle of a transmission, and leave the bus in inconsistent state, usually with the other party pulling one of the lines down and preventing communication. This can easily happen when we are doing aggressive power management, entering deep sleep or cutting power to the sensors.
The proposed solution is to strobe the clock line several times and send a NACK, to make sure all the devices on the bus get to finish the last byte they were sending.
[STM32WB] USBDONGLE_WB55: I2C
I tried to communicate with several I2C slave devices (ATECC508A and ST25DV04K) but without success.
hw:
>>> i2c = machine.I2C (1, freq=400000)
>>> i2c.scan()
[]
>>>
sw:
>>> i2c = machine.I2C (-1, scl=machine.Pin.cpu.B8, sda=machine.Pin.cpu.B9, freq=400000)
>>> i2c.scan()
[]
>>>
can anyone communicate with i2c devices with the stm32wb?