cancel
Showing results for 
Search instead for 
Did you mean: 

Customer writes, "We have a small number of VL6180 sensors that apparently return a random number about 3% of the time. Sometimes the error return is error 12 - 'underflow'"

John E KVAM
ST Employee

We


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.
1 REPLY 1
John E KVAM
ST Employee

This issue was found a while back. Please update your API with the latest from ST.com, or get the latest app note on how to set up the sensor.

Look for:

VL6180x_RangeStaticInit() in the file VL6180X_api.c

Esp check for:

    VL6180x_WrByte(dev, 0x00e3, 0x01);

    VL6180x_WrByte(dev, 0x00e4, 0x03);

If you have the latest, you will have these settings.

These settings disable the I2C interface from interrupting critical sections of the internal firmware.


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.