cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L5CX Initialization Timing (vl53l5cx_api)

JahKMC
Associate III

Currently I'm using some of the vl53l5cx api functions along with some custom code. I plan to have multiple ToFs used and noted, via o-scope, that the initialization function vl53l5cx_init (looks to be blocking code?? correct me if I'm wrong) takes about 2.5 seconds to complete (at 400Kbps I2C) to configure a single ToF. This means with the current initialization it would take more than 10 seconds alone for initialization to complete. 

Unfortunately, I am working in constraints that prevent me from accessing the watchdog to circumvent the issue. 

Are you aware of any ways of overcoming this? I wasn't sure of the initialization sequence was one that could be split.

1 REPLY 1
Zhiyuan.Han
ST Employee

Hi 

When VL53l5CX initialization, there is big block of code (around 86KB) was downloaded into the device, and plus some other operation, like reboot, so the total booting time is quite long.

From my side, If I set I2C speed to 400K, it took around 2.2s, if I set to 1M, it took around 1s for single device.

There is no magical way to compress the FW currently, so you can try to speed up the I2C speed or use more I2C bus to make system works faster. 

 

Br

Zhiyuan.Han


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.