cancel
Showing results for 
Search instead for 
Did you mean: 

vl53l0/1xv2 interface to 3rd-party MCU/MPU

Mak
Associate

hi anyone can please help me for the integrating vl53l0 sensor with rx71m mcu,

because i am not getting specific document for communicating it with rx71m over i2c 

please support

1 REPLY 1
John E KVAM
ST Employee

The trick is in the platform.c file. 

This file contains the layer between the sensor and the MCU/CPU you are running. 

It translates the VL53L0_RdByte() andVL53L0_WrByte() functions in the API into the I2C functions your MCU uses. 

But it was written by a Linux programmer who absolutely loves abstraction layers. So it's a touch hard to follow.

But you can follow it through and re-write it to talk to your hardware. 

Also note that lots of people have done this and put their code onto GitHub. 

Before you go too far, search GitHub looking for either VL53L0 posts or VL53L0 and your type of MCU.

You can see what others have done.

As delivered the code talks to a PC and absolutely no one wants to do that. For one, it involves opening up your laptop and that's just dumb.

- john

 


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'