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.


Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.

ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'