Skip to main content
LC J.1
Visitor II
March 5, 2021
Question

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.

  • March 5, 2021
  • 1 reply
  • 1024 views

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

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
August 24, 2021

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.