cancel
Showing results for 
Search instead for 
Did you mean: 

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

Joda1208
Associate

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?

1 REPLY 1
John E KVAM
ST Employee

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.


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.