VL53L1´S API implementation for Microchip devices: Doubts.
Hi friends,
I´m trying to include a Vl53l1 in my project. I am working with a PIC32MX440 microntroller.
I have filled with correct functions in the files vl53l1_platfom.h and .c to use the APIs with my hardware.
The commication with the sensor is right, the microcontroller can read and write in to the sensor, everything goes well...
I have read the ST APIs manual (UM2356), I have write the recomended calls to start to measure distances, the program works but the range I get isn´t correct, I always get the same result (0x196). I am using the sensor without calibration, I think this behavior is for that reason. Maybe?
So I am trying to execute a calibration process. I have followed the manual (UM2356), but when I try to run the Offset calibration I get the next error:
VL53L1_ERROR_GPH_SYNC_CHECK_FAIL
I am blocked, because I can´t measure and can´t calibrate the sensor.
I have two doubts:
- Can I use the sensor without calibration?
- What is the meaning of the error VL53L1_ERROR_GPH_SYNC_CHECK_FAIL?
???
Best regards.
Jesus
PS: I apologize my english.
