cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting the API with STM32 platform in CubeMX

Soren Karlsen
Associate II

Posted on February 13, 2017 at 16:04

Hi

Im having the device VL53L0X which I want to communicate with trough the I2C protocol to my STM32F401RE micro controller.

Im using CubeMX from STM to setting up the pins which works fine, but I don't know how I 'connect' the I2C functions from the API with the I2C at the MCU.

As far as I can read in the VL53L0X API Specification, something in the 'VL53L0X_platform.h' has to be adapted to the platform but Im not sure how to do it. Can somebody give me an example, and also point out what I has to change?

Best regards

S�ren

3 REPLIES 3
Oliver Beirne
Senior

Posted on February 13, 2017 at 17:42

Hello

I have moved your question to the

https://community.st.com/s/topic/0TO0X000000BSqSWAW/

‌ where someone should be able to assist you.

Thanks

Oli

Max
ST Employee
Posted on February 15, 2017 at 05:18

Hello,

Have you looked at the

https://my.st.com/content/my_st_com/en/products/ecosystems/stm32-open-development-environment/stm32cube-expansion-software/stm32-ode-sense-sw/x-cube-53l0a1.html

package?

I seem to me it includes the example you seek.

Even if you are not using the same hardware combination (NUCLEO-F401RE + 

X-NUCLEO-53L0A1)

, I should help you get started.

Regards,

Max

Soren Karlsen
Associate II
Posted on February 21, 2017 at 07:51

Hi, I found a different approach, using the mbed software and then export it to an offline compiler, which seems to have solved the problem