2021-12-10 03:13 AM
Using the VL6180X sensor with default initial configuration found in the documentation (chapter 2.1), the measurement task remains stuck waiting for the measurement bit to be set on the 0x4F register (measurement ready).
The bit seems to never be set.
2021-12-15 09:55 AM
There are not very many ways to 'stick' the sensor.
Lack of power is one.
poorly constructed I2C interface is another.
And any noise on the XShut down (GPIO0) is another way. (use some big pull-upsand maybe a cap near the sensor). Even minor glitches can effect this line.
Always check the status on your commands. Sometimes that tells you want is going on - generally just 'I2C' error.
The other trick is just look at the sensor - you should see a red glow if it's running.
(If you are old - like me - the sensor might not be very visible, use a PC camera to look at it. Cell phone cameras tend to filter out the near I/R)
If it's glowing, you know it's running and you should be getting answers.
good luck
john