2024-02-18 04:24 AM - edited 2024-02-18 04:25 AM
I am encountering an error while attempting to create any project in STM32CubeIDE, which states, 'Code generation could not be done because the necessary firmware package is missing. Not able to complete STM32Cube project creation.' I am using the most up to date software version (1.14.1) and all my packages are up to date as well.
I have attempted several troubleshooting steps, including:
None of these solutions have resolved the issue for me. The only workaround I have found is to create the project in the default workspace, which was initially created in 'C:\Users\xxxx\STM32CubeIDE\workspace_1.14.1.' I also made sure that my other project workspace folder has the same administration access as my default workspace. And nothing worked for me.
However, I am concerned about storing my files in the 'C' drive and prefer not to use this workspace for my projects. I would appreciate any assistance in resolving this issue, as I have already invested a significant amount of time in troubleshooting without success.
Solved! Go to Solution.
2024-02-18 05:38 AM
I'm pleased to report that I have successfully resolved the issue. The problem stemmed from folder renaming, specifically, the presence of certain characters such as "&" or "-". It appears that the MX is incapable of creating a project folder in a directory path containing these characters. To address this, I ensured that all such characters were removed from the directory path, which has effectively resolved the problem.
2024-02-18 04:49 AM
Did you try : switch workspace + copy the settings , you want to have -> layout...etc. ?
Then try : make new stm32-project (there now) , generate code and debug... works ?
2024-02-18 05:03 AM - edited 2024-02-18 05:22 AM
When creating a new workstation within a folder generated by CubeIDE, the process functions correctly. However, attempting to create a project within an existing folder or workstation results in encountered issues, preventing successful project creation. This behavior suggests a potential bug or software issue.
2024-02-18 05:38 AM
I'm pleased to report that I have successfully resolved the issue. The problem stemmed from folder renaming, specifically, the presence of certain characters such as "&" or "-". It appears that the MX is incapable of creating a project folder in a directory path containing these characters. To address this, I ensured that all such characters were removed from the directory path, which has effectively resolved the problem.
2024-02-18 05:40 AM - edited 2024-02-18 05:41 AM
ok.