2025-02-11 10:06 AM
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.
Solved! Go to Solution.
2025-02-11 10:41 AM
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
2025-02-11 10:41 AM
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
2025-02-11 10:52 AM
I could not find any files like this C:\...\VL53L5_PresenceHODKit_1.0.82\Projects\Multi\Applications\VL53L5\PresenceHODKit\STM32CubeIDE\STM32F401RE-Nucleo\
2025-02-11 2:42 PM
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
2025-04-10 7:26 AM
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
2025-04-10 11:20 PM
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.
2025-04-10 11:50 PM
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
2025-04-11 2:34 AM
Okay, I was able to resolve the problem.
Indeed, version 13 of the toolchain manager isn't stable, but with version 12 it works.