Skip to content

VL53L4CX giving status 255 in alternate cycles above 7cm #2229

Closed Answered by cparata
kiranps19 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @kiranps19 ,
did you try to run the example with an I2C speed of 400 KHz? Is there any difference? Another test that you can do is replacing the line:

status = sensors[i].VL53L4CX_WaitMeasurementDataReady();

with

uint8_t NewDataReady = 0;
do {
  status = sensors[i].VL53L4CX_GetMeasurementDataReady(&NewDataReady);
} while (!NewDataReady);

I noticed that the "VL53L4CX_WaitMeasurementDataReady" API has an internal delay that maybe repeated for all the sensors can give some issues.
Let me know what happens on your side.
Best Regards,
Carlo

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fpistm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants