Skip to main content
Joda1208
Visitor II
October 1, 2019
Question

VL53L0X_PerformSingleRangingMeasurement(..) allways gives the "no update" status.

  • October 1, 2019
  • 1 reply
  • 745 views

Hi at all

Im using the STSW-IMG005 API.

The function 'VL53L0X_set_reference_spads(...)' gives an error -50.

In another thread i read this could be ignored.

All other functions after that worked well.

But the function 'VL53L0X_PerformSingleRangingMeasurement(..)'

allways gives the "no update" status. 

What could be wrong when this status is received and how could I resolve it?

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
October 23, 2019

The easy way to solve the -50 is to make the VL53L0X_set_reference_spads(...) the very first call after the initialization.

If you fail to get a result from the 'VL53L0X_PerformSingleRangingMeasurement(..)' - your chip has reset.

this can happen if there is noise on the reset line.

Try a stronger pull up, decoupling caps, or in one case the customer had to change the sensor reset line to an input line on his MCU to avoid noise on the line.