cancel
Showing results for 
Search instead for 
Did you mean: 

I want to make an own library of VL53L3CX sensor to integrate with ESP32, I have downloaded the API driver code from the ST official website. I am facing the below file error while compiling.

LC J.1
Associate

fatal error: ranging_sensor_comms.h: No such file or directory.

The error is from the vl53lx_platform.c file,

 

I have searched entire API driver code files and I didn't find the #include "ranging_sensor_comms.h" file.

I want to know two things:

  1. How to take only the required files from the entire API driver code files.
  2. How to sort this error.

If anyone knows the solution for the above two things, please let me know.

Thanks and Regards

Lokesh CJ

1 REPLY 1
John E KVAM
ST Employee

The VL53LX_platform.c has to be re-written for the MCU you are integrating. The sensor APIs get to the point of I2C_read() and I2C_write() functions. But as we don't know which MCU you have the actual I2C implementation is up to you. Simply re-write the platform.c file so it works in your environment.


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.