VL53L0x sensor returning 20mm constantly three samples out of five randomly

In arduino , this vl53l0x sensor getting best result upto 1.9m (that is not problem)
But the same sensor, when i am porting the code to interface with texas instruments CC2640 board , i m getting randomly 20mm in three samples out of five samples. I dont know how… is there any different in code for different microcontrollers… any change have i to do in read/write registers via I2C communication for different microcontrollers? i need clarification… if any

Hello.

We do not have any experience using that sensor with that microcontroller and we have not experienced any similar issues (random measurements of 20mm) with other microcontrollers and that sensor, either. If you have access to one, you might use a logic analyzer to check the communication between the devices.

-Nathan