cancel
Showing results for 
Search instead for 
Did you mean: 

Vl53L3CX and X-CUBE-TOF1 v2.0.0 issue

Sid Price
Senior

I have a simple ranging project generated by CubeMX using X-Cube-TOF1 v2.0.0. The host is Nucleo-L452.

Initialization of the VL53L2CX appears to work without errors, however when the "VL53LX_run_device_test" function runs it fails after the timeout, returning -7 (timeout).

Please could you help to debug/resolve this issue.

11 REPLIES 11

@Julien NGUYEN​ More information for you is that if I define VL53LX_LOG_ENABLE the firmware works. There is a flood of data from the sensor sent to the serial port and if I capture that I see that the ranging is working.

This suggests there is some kind of timing error in the code. Changing the I2C speed to "normal" does not change the symptoms.

Are you able to reproduce the problem?

Sid Price
Senior

I think I have found and resolved the issue.

The SATEL board was being powered from the Nucleo 5V rail. The Nucleo has 3.3V I/O. When I switched the SATEL board to use the 3.3V rail the sample application appears to work.

Sid