2024-12-13 01:01 PM - edited 2024-12-16 06:05 AM
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.
2024-12-26 05:13 PM
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