Has anyone been able to get the ULD for the vl53l5cx running in zephyr. I believe my I2C transfers are correct yet it times out on the poll_for_answer.
Has anyone been able to get the ULD for the vl53l5cx running in zephyr. I believe my I2C transfers are correct yet it times out on the poll_for_answer.
I ended up solving my issue, I was not incrementing the register address after each loop in WrMulti. I didn't find the documentation very helpful for how the sensor expects its I2C data to be transmitted, or how the init function writes to certain registers (i.e. 0x7FFF) and does not explain which register that is, and what the command is doing. As well there is an incorrect diagram in the datasheet for this sensor for sequential write which also lead me to some troubles in figuring this out. Zephyr is an RTOS that is closely integrated with nordic boards.
I got a complaint about the extra stop bit in the documentation in another thread just last week. It will be fixed ASAP. VL53L1, L3, L4 and L5 are all affected.
That big 80K load is the software that runs the senosor.
Writting that last byte, 7fff is what triggers the "Load is done, boot the sensor."
And there are so many MCUs that have limits on the I2C write length, I really asked for an example that shows a multi-I2C command to do the load as an example. Apparently it did not get done. Sorry about that.