drivers/aip31068: initialization fails in most cases when using esp_i2c_sw #17311
Labels
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
There is a 80% chance that the initialization for the driver
aip31068
fails when usingesp_i2c_sw
instead ofesp_i2c_hw
.Steps to reproduce the issue
Remove the line
USEMODULE += esp_i2c_hw
fromaip31068/Makefile.dep
and test with real hardware.Reason for the failing initialization is this line:
RIOT/cpu/esp_common/periph/i2c_sw.c
Line 365 in 2079642
Attachment
I used the logic analyzer software from saleae which is available here.
The attached zip-archive contains two files that can be imported to show all I2C operations for the
esp_i2c_sw
- andesp_i2c_hw
-version of the driver. As you can see I had to reset my esp32 4 times before initialization was successful.The text was updated successfully, but these errors were encountered: