RPI Pico SoftI2C issue with VCNL4040

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
not_karl
Posts: 1
Joined: Fri Aug 13, 2021 6:31 pm

RPI Pico SoftI2C issue with VCNL4040

Post by not_karl » Fri Aug 13, 2021 6:46 pm

Have run across an issue with the SoftI2C driver and VCNL4040 on the RPI Pico. Appears that the extmod/machine_i2c.c:init sends an I2C stop at the time of initialization. This produces the attached trace and impacts the VCNL4040's state machine when attempting to read data prior to an isolated write of data having been performed.

Have verified this issue by bit-banging independently in a micropython script with/without the I2C stop prior to a start. Removed the additional stop from the initialization and the SoftI2C class is able to work with the device as expected.

The issue is not present on the micropython hardware I2C driver.

Should this be filed as a bug?

https://www.dropbox.com/s/0ao8e8oh40o9y ... p.PNG?dl=0

Thanks.

Post Reply