Hi, in our system we use 4 vl53l5cx ToF connected on the same I2C bus. To initialize them we use a GPIO to enable/disable I2C interface and communicate with one device at time.
During initialization, on each device must be uploaded the FirmWare. This operation is done using I2C also. I2C is configured at 400kHz, because is also shared with other - different - sensors (temperature, pressure and humidity). So it cannot work at 1MHz.
The problem is that the whole system initialization lasts about 20s (only for ToF initialization) and we would reduce it.
The main question is: is there a way to upload the firmware in parallel to all 4 ToF at the same time?
The driver flashes device at bunches, and wait for some response or reads values from nvm, so during initialization/flashing there are a lot of multiwrite/multiread operations.
Is there a way to do it writing only without checking anything until completed?
Hello.
Other than using separate I2C buses we are not aware of a way to initialize multiple VL53L5CX sensors in parallel. You might consider searching or making a post on the ST forum about that.
- Patrick
