2025-03-03 9:47 AM
Hello,
I saw that some people had a similar problem to mine. When generating the project on MC Workbench I have the following error: STM32CubeMX not found - ver. "6.0.0" or higher is required
But I have STM32CubeMX installed with version 6.14.0
I tried to install STM32CubeMX for all users or to change the Windows language to English as I saw on other posts but without success.
Does anyone have another suggestion?
Here are some various screenshots that have been asked in similar posts
Thanks for your help !
2025-03-04 3:35 AM
Hello Xavier75,
Please, provide the following information
- Windows version
- Have you change the language before run CubeMX installation?
- Have you other CubeMX versions installed?
- Can you verify if the executable exists in the relative path as for the image shared? C:\Program Files\STMicroelectronics\STM32Cube\STMCubeMX\STMCubeMX.exe (in your case, please check also the upper /lower case characters in the full file name path)
- Can you run the following command at terminal and share the test.log generated?
REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\STM32CubeMX /reg:64 > test.log
if your operative system is 32bits the above option should be /reg:32
Best Regards
CLD
2025-03-04 5:46 AM
Hello CLD,
- Windows version : Windows 10 Enterprise 22H2
- Have you change the language before run CubeMX installation? No it was after installation when launching MC Workbench
- Have you other CubeMX versions installed? No it is the only one
- Can you verify if the executable exists in the relative path as for the image shared? C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe (in your case, please check also the upper /lower case characters in the full file name path) Yes it exists, and it is the same path : C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe
- Can you run the following command at terminal and share the test.log generated? If I don't run the command in admin mode it doesn't work. Here is the result in admin mode :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\STM32CubeMX
UninstallString REG_SZ "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\Uninstaller\admin_uninstall.bat"
DisplayName REG_SZ STM32CubeMX
DisplayIcon REG_SZ C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe
DisplayVersion REG_SZ 6.14.0
Publisher REG_SZ STMicroelectronics
EstimatedSize REG_DWORD 0xb24a9
After some testing this morning, MC Workbench is able to find STM32CubeMX when it is launched in admin mode
But there are lot of issues,for example Board Designer and Board Manager doesn't work and I have the following error when I generate my project :
Attached is the full log. Hope this can help.
Regards
Xavier
2025-03-05 7:16 AM
Hello,
Thank you very much for your feedback, we will further analyze.
Sometime after the installation of a new CubeMX (admin or user) it needs to run the first time the CubeMX as stand-alone application to work properly with Workbench.
The Workbench, Board Designer and Board Manager could be launched (installed) as standard user; no admin right need to execute them.
The image you are sharing is from MC Workbench and the log inside is the one coming from CubeMX, in case of project code generation there is not interaction with Board Designer or Board Manager. You can open the relative .ioc file directly from your CubeMX application and generate the code from there.
Can you give more information on errors that you face with Board Designer and Board Manager?
Best Regards
CLD
2025-03-05 7:36 AM
Hello,
I have been able to find a workaround to generate the code without issue.
1 - Install MC Workbench for all users
2 - Install STM32CubeMX for all users
3 - Then I have to restart the computer and log with the admin account.
Like this I am able to use MC Workbench without issue.
If I log with an user account on the computer it won't work even if I start MC Workbench as an admin.
Can you give more information on errors that you face with Board Designer and Board Manager? I had a blank window forever when I was trying to start Board Designer or Board Manager from MC Workbench. (logged as user and started MC Workbench as admin)
Best Regards
Xavier
2025-03-06 4:13 AM
Hello,
The MC Workbench doesn't need to be installed for all users and doesn't need to be running with admin privilege.
You can install it only for the current standard user and avoid running it with admin privilege (running the tool with admin privilege it is not a standard way to use the tool).
On my PC, I have installed CubeMX and MC Workbench only for my standard personal account, and I run them with standard user privileges.
Regarding the "blank window forever from MC Workbench," sometimes launching these external tools causes them to start in the background, and Workbench shows a blank window while waiting for the tools to complete their job. In these cases, you will see a new icon in the system taskbar; clicking on it will bring the application to the foreground. This is a known issue that we are addressing.
Best Regards
CLD