2019-10-01 02:59 AM
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?
2019-10-22 05:47 PM
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.