2
Programming guidelines
The software project to make the sensor board work directly with the NUCLEO-F401RE is available on
The user must download the package X-CUBE-TOF1, then install the X-CUBE-TOF1 SW pack in CubeMX.
The precompiled SW project is available under:
C:\Users\username\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-TOF1\2.0.0\Projects\NUCLEO-
F401RE\Examples\CUSTOM\VL53L5CX_SimpleRanging.
A VL53L5CX-SATEL board project for NUCLEO-F4101RE is available in the directory tree as shown in the
following figure. The difference between ST common Expansion board X-NUCLEO-53L5A1 and this board is the
classification name. This project is part of the “CUSTOM” directory.
Figure 3.
X-CUBE-TOF1 directory
The project is developed for IAR, Keil and STM32CubeIDE toolkits. The user can select any software
development kit and make it run.
Another method is to push directly the embedded software binary file. For such task, user can simply drag and
drop the binary file "VL..." located in the Binary directory, into the STM32 target represented by "NODE_F401RE"
in the PC file tree.
By default, the software programs the sensor in 4x4 mode. The result can be rendered using a serial tool (such as
Teraterm) to access the Nucleo COM port, as shown in
Figure 4. Display rendering by default 4x4 mode
AN5717
Programming guidelines
AN5717
-
Rev 2
page 5/9