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.


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question. It helps the next guy.