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


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question. It helps the next guy.
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.


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question. It helps the next guy.