Skip to main content
Associate II
October 4, 2025
Solved

vl53l8cx_def.h File

  • October 4, 2025
  • 2 replies
  • 442 views

Hello,

 

I am having a hard time finding which software pack this file vl53l8cx_def.h is in?

I think once I get that I should be get the zones if Im understanding the error correctly. Please advise. 

If it helps with the solution I am trying to use the P-NUCLEO-53L8A1 and VL53L8CHV0GC to generate 3D point clouds.

Rhagg28_0-1759612867921.png

 

 

 

 

 

 

Best answer by John_Kvam

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 

2 replies

Technical Moderator
October 8, 2025

Hi Rhagg28,

Could you please let me know what software package you are not seeing vl53l8cx_def.h in? We took a look on our end and couldn't find it either. I need to ask internally about this file.

 

Elias 

Rhagg28Author
Associate II
October 9, 2025

Hello Elias,

 

These are all the packs that I ended up looking throught from the software portion of ST micros website

Rhagg28_0-1760053121598.png

 

John_KvamBest answer
Associate
October 10, 2025

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."
Rhagg28Author
Associate II
October 11, 2025

Hello John,

 

Thank you for your help and insight on these things. I am new to this and eager to learn. 

Are there any youtube videos that you could recommend for beginners?

 

Best Regards,

Ryan