cancel
Showing results for 
Search instead for 
Did you mean: 

Help with vl53l0x and stm32f103

Alison Hentges
Associate

I need help with the vl53l0x sensor and stm32f103 board if anyone can help me with programming or any library.

1 REPLY 1
John E KVAM
ST Employee

​This one is easy - and fun too.

Go to the ST web site and download the CUBE-MX software. It's free.

STM32CubeMX- Development ToolsSTM32Cube initialization code generator.

Download here - STM32CubeMX

Run this application. Enter your board or MPU.

Enter which ST devices you have and which PIOs you want to attach and whatever you have hooked up.

Because it knows the chip, or the board and all the ST sensors, you can just attach them to whatever your hardware guy came up with.

Hit the 'build software' button and you will get all the initialization code, and the driver code and everything else you need.

In the main.c function go to the bottom and look for the comment 'USER CODE'. Put your stuff there.

And if you need to change something, just run it again. It will re-generate the code - and your modifications will still be in there.

If you want to, you can also try Atollic true studio.

This is the STM32CubeMX combined with a complete IDE and debugger.  (It's based on Eclipse, written by Atollic, and ST bought Atollic just so we could give the code away for free.)

The CubeIDE is an Integrated Development Environment. Based on open-source solutions like Eclipse or the GNU C/C++ toolchain, this IDE includes compilation reporting features and advanced debug features. It also integrates additional tools such as STM32CubeMX (natively included within STM32CubeIDE).

Download here - STM32CubeIDE

Between STM32CubeMX and Atollic, it's one great idea.

(And no, I don't work for either of those groups.)

Give it a try - it will solve all your initialization issues.

  • john


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.