This is an interesting one...
Somehow you are trying to build without using some configuration or other and it's sending you the wrong direction.
If you want a point cloud, you don't need the VL53L8CH. It can do it, but you are wasting a lot of bandwidth sending Compressed Normalize Histogram (CNH) data around.
Take your setup and use the code for the VL53L8CX code - you already have it downloaded -STSW-IMG040.zip.
Just build that and you will get the distances for each zone. And from that you can build your point cloud.
And with a little luck, learning how that code works will show you where you went wrong building the VL53L8CH code. (Although I have to admit, I cannot understand where you went wrong. )
- john
"If this or any post solves your issue, please mark them as ""Accept as Solution"". It really helps the next guy.And if you notice anything wrong do not hesitate to ""Report Inappropriate Content"".I am a recently retired ST Employee. My former username was John E KVAM."