2025-09-20 11:39 AM
Fresh install of stm32cube1.9.0 (onto a Windows 10 64-bit system). This older-than-current version needs to be used (at least at first) to avoid issues in resurrecting an old project (from when1.9.0 was current).
The default install path (from the application's installer) was overridden (to C:\ST\STM32CubeIDE_1.9.0\).
I believe I am having a problem with the internal (to STM32CUBEIDE) value assigned to it's PATH variable (see below), however, I do not know how to update this internal PATH value to help the IDE find make.exe (which was installed in the system during the installation of the IDE overall.)
A small (C-language) test program was created and an attempt made to build it, resulting in the following error:
-----------------------------------------------------------------------------------------
12:06:22 **** Build of configuration Debug for project test1 ****
make all
Cannot run program "make": Launching failed
Error: Program "make" not found in PATH
PATH=[C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE//plugins/com.st.stm32cube.ide.jre.win64_2.1.0.202111292251/jre/bin/server;C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE//plugins/com.st.stm32cube.ide.jre.win64_2.1.0.202111292251/jre/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\user\AppData\Local\Microsoft\WindowsApps;;C:\ST\STM32CubeIDE_1.9.0\STM32CubeIDE]
(although I am not sure how the IDE relies on this PATH variable - displayed alongside the error message in the console - I do not see the path to the installed copy of make.exe included).
-----------------------------------------------------------------------------------------
make.exe was located in the directory tree below which the new install of stm32cubeide 1.9.0 was installed:
Directory of C:\ST\STM32CubeIDE_1.9.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.make.win32_2.0.100.202202231230\tools\bin
03/02/2022 02:54 AM 1,139,600 make.exe
-----------------------------------------------------------------------------------------
windows %PATH% variable includes a path to make.exe, however, it does not appear that the IDE relies on this:
C:\ST\STM32CubeIDE_1.9.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.make.win32_2.0.100.202202231230\tools\bin>echo %PATH%
(other path entry removed)
C:\ST\STM32CubeIDE_1.9.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.make.win32_2.0.100.202202231230\tools\bin>
-----------------------------------------------------------------------------------------
As it's been a long time (evidently, since about 2022!) that I have used stm32cubeide, I do not recall where/how to correct this sort of PATH issue.
Thanks for any assistance (and while I appreciate recommendation to update to current version, I am specifically avoiding this resolution as I do not wish to jeopardize a project that was developed (then archived) while 1.9.0 was current --- thank you!)
Any request for clarification of this problem statement will be cheerfully fulfilled.
Thank you
Solved! Go to Solution.
2025-09-20 1:30 PM - edited 2025-09-20 1:35 PM
Is this an STM32 project? Create a new project using STM32CubeMX for the chip you're using and try to compile it.
The errors you are seeing are probably due to how the project was created or imported.
2025-09-20 12:05 PM
I copied make.exe to one of the directories included in the IDE's PATH variable; this allowed make to proceed, however, build (of the tiny test program) then stopped with another likely PATH-related issue:
Program "g++" not found in PATH
This problem is not (for me) as easily worked around, as g++ is (under that make) nowhere I could find under the IDE's file tree, so the work-around of making a copy of the binary for g++ could not apply here.
I've attached screen grab of from the problems tab of the errors/warnings console (however, this does not help me locate the settings for the internal PATH variable, nor where the binary g++ should be found.)
Thanks again
2025-09-20 1:30 PM - edited 2025-09-20 1:35 PM
Is this an STM32 project? Create a new project using STM32CubeMX for the chip you're using and try to compile it.
The errors you are seeing are probably due to how the project was created or imported.
2025-09-20 2:48 PM
Yes and thank you TDK for the quick reply!
You are correct, I had forgotten that C/C++ project is created differently than a STM32 project, and that was my error. I evidently have replaced my memories of how to use STM32CubeIDE with pure rust and other forms of useless oxides!
Thanks again!