cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 VL53L7CX SMART PRESENCE DETECTION

Arun28
Associate

Hii,

I am working on a project using the STM32 Smart Presence Detection. In order to run the program and get the detection for the person and get some detection readings which file and what are the steps should I follow? I have extracted the STSW-IM048 file and I have played with the EVK interface and now I am struggling to use this algorithm to implement this system to my robot.

1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

Once you have played with the graphical User Interface (GUI) in the presence code (STSW-IMG048) you want to try programming. 

Find the .zip file and unzip it. 

navigate to: C:\...\VL53L5_PresenceHODKit_1.0.82\Projects\Multi\Applications\VL53L5\PresenceHODKit\STM32CubeIDE\STM32F401RE-Nucleo\

(Don't worry about the L5 above. Same as L7, but with a wider Field of View. And yours might not be 1.0.82)

At this point you are going to want to have STM32CubeIDE installed on your computer. It's free. Download it from ST.com

Get STM32CubeIDE open, select "file", 'open project from file system' and give it the directory name where you see the .cprogect file. IC:\...\VL53L5_PresenceHODKit_1.0.82\Projects\Multi\Applications\VL53L5\PresenceHODKit\STM32CubeIDE\STM32F401RE-Nucleo

From here you should be able to compile and run. Then try debugging the program and see what it is doing. 

Get that going and you will be up to speed. There is a compiled library that does the presence stuff. 

C:\...\VL53L5_PresenceHODKit_1.0.82\Middlewares\ST\PresenceDetect\HODMZ

You can bring that library to other machines and compilers. But if it's not an ARM processor you are going to need some support. (In this case open a support ticket and I will support you.)

- john

 


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

View solution in original post

7 REPLIES 7
John E KVAM
ST Employee

Once you have played with the graphical User Interface (GUI) in the presence code (STSW-IMG048) you want to try programming. 

Find the .zip file and unzip it. 

navigate to: C:\...\VL53L5_PresenceHODKit_1.0.82\Projects\Multi\Applications\VL53L5\PresenceHODKit\STM32CubeIDE\STM32F401RE-Nucleo\

(Don't worry about the L5 above. Same as L7, but with a wider Field of View. And yours might not be 1.0.82)

At this point you are going to want to have STM32CubeIDE installed on your computer. It's free. Download it from ST.com

Get STM32CubeIDE open, select "file", 'open project from file system' and give it the directory name where you see the .cprogect file. IC:\...\VL53L5_PresenceHODKit_1.0.82\Projects\Multi\Applications\VL53L5\PresenceHODKit\STM32CubeIDE\STM32F401RE-Nucleo

From here you should be able to compile and run. Then try debugging the program and see what it is doing. 

Get that going and you will be up to speed. There is a compiled library that does the presence stuff. 

C:\...\VL53L5_PresenceHODKit_1.0.82\Middlewares\ST\PresenceDetect\HODMZ

You can bring that library to other machines and compilers. But if it's not an ARM processor you are going to need some support. (In this case open a support ticket and I will support you.)

- john

 


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

I could not find any files like this C:\...\VL53L5_PresenceHODKit_1.0.82\Projects\Multi\Applications\VL53L5\PresenceHODKit\STM32CubeIDE\STM32F401RE-Nucleo\

John E KVAM
ST Employee

My fault for not checking the latest. I just downloaded it and saw version 1.0.0

Go to:

STSW-IMG048\SPD_kit_1.0.1\

SmartPresenceDetectionKit_F401_1.0.0\SmartPresenceDetectionKit\STM32CubeIDE\STM32F401RE-Nucleo\

This directory has the .cproject file in it. 

Some guy decided to clean it up for the initial release to customers. 

- john


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

J'ai bien importer le dossier SmartPresenceDetectionKit_F401_1.0.0 dans STM32CUBE IDE mais lorsque je compile le code j'ai ces erreurs, j'ai uploader malgré tout mais je n'ai rien dans mon moniteur série:
Je tiens à préciser que j'utilise une STM32F401RE et une X NUCLEO 53L7A1 
Description Resource Path Location Type
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fstatr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-isattyr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-signalr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem

Hello Freedy,

The output messages from your CubeIDE are errors or warnings?

The issue seems to come from your linker / CubeIDE / GCC version and not the SPD project. I saw a similar issue here on the forum: Solved: Compilation Error when Using STM Cube IDE V 1.18 - STMicroelectronics Community

The solution proposed by our STM32 experts is to downgrade the gcc version. I let you read the post.

I just tried to download the project from ST.com and I can compile it with default CubeIDE1.17.0 settings without these errors.

 

 

 


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'

As i said previously, you can show output messages from cube ide:

Description Resource Path Location Type
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fstatr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-isattyr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-signalr.o): note: the message above does not take linker garbage collection into account SmartPresenceDetectionKit C/C++ Problem

Okay, I was able to resolve the problem.
Indeed, version 13 of the toolchain manager isn't stable, but with version 12 it works.