Include VL53L0X_api
Answer
5/15/19 7:27 AM

hello everybody,

I would like to use the API of the vl53l0x sensor from ST Microelectronics. Unfortunately, I get an error message (no such file or directory) when building the program if I want to include the "VL53L0X_api.h". The file is stored in the workspace under "... \ SDK \ xdk110 \ Libraries \ FreeRTOS \ 3rd-party \ third_party \ mcu_vendor \ st \ stm32l475_discovery \ BSP \ Components \ vl53l0x".
can someone help me to integrate the file?

 

Sandro

0 (0 Votes)
RE: Include VL53L0X_api
Answer
5/15/19 12:25 PM as a reply to Sandro Götz.

Hi Sandro,


the easiest way is if you move the contents of the vI53I0x folder into the source folder and then adjust the make file accordingly. But I suspect that there will be conflicts because the XDK is not an ST platform and you would have to adjust the HAL.

regards

Saeid

0 (0 Votes)
RE: Include VL53L0X_api
Answer
5/21/19 8:48 AM as a reply to Saeid Kajlar.

Hi Saeid,

I have moved the contents of the VL53L0X folder into the source folder and it works. But as you predicted there is another problem with the VL53L0Xand the XDK. Do you have an idea how to implement the sensor to read it with the XDK via I2C?

Or has somebody worked with the VL53L0X or similar sensor operating with the XDK.

regards,

Sandro

0 (0 Votes)
RE: Include VL53L0X_api
Answer
5/21/19 9:01 AM as a reply to Sandro Götz.
Hi Sandro,

The XDK provides APIs to connect to external components via several of the MCU peripheral ports (like I2C, SPI, UART, ADC...). Please take a look at the XDK extension bus guides (https://xdk.bosch-connectivity.com/guides) on how and where to connect your sensor.

Please start your embedded project using the XdkExtensionPort project as a template.

This proyect provides you with the ExtensionI2cExample_Read() and _Write methods you need to add to the hardware adaption layer of the VL53L0X code.

Best regards,

Francisco
0 (0 Votes)