VL53L1X sensor with ULD API stops sending data after some time
Our setup has 6 VL53L1X sensors connected via TCA9545A multiplexors to STM32F303 host. We started with STSW-IMG007 API, but later switched to STSW-IMG009 ULD API.
First, the statement that ULD API has "only 4 files" is misleading. The code does not compile with only files included into API package. The example in X-CUBE-53L1A1 links to "fat" driver folder to get an access to about 6 additional .h headers, and then excludes it from compilation.
Question 1: Is this the way ULD driver supposed to be used?
Second, and most important, is that the sensors stop responding after some random time. Usually it is VL53L1_ERROR_CONTROL_INTERFACE returned from VL53L1_RdByte() function. Sometimes it happens after 20-30 min, and sometimes it is as short as 2 min. Note, that we observed same problem with "fat" driver as well, which was the reason to switch to ULD. We also tried Arduino boards with both Arduino and Pololu drivers and VL53L0X sensors. The result is always the same - they work for a while and then getting "stuck" at some point.
Question 2: What could be wrong and how to ensure reliable long-term operation?
