2025-10-06 7:06 PM
Hi
I created a new project in STM32CubeIDE, but in Project Manager → Project, the “Generate under Root” option is grayed out and cannot be changed. What’s the reason for this?
Solved! Go to Solution.
2025-10-07 1:42 AM - edited 2025-10-07 3:00 AM
Hello @Adams ,
First let me thank you for posting.
When you create or open a project directly in STM32CubeIDE, it automatically manages the code generation paths and structure.
CubeIDE integrates CubeMX internally, so it locks the [Generate Under Root] option to maintain consistent folder management.
You will only see it enabled if you run standalone STM32CubeMX
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-10-07 1:42 AM - edited 2025-10-07 3:00 AM
Hello @Adams ,
First let me thank you for posting.
When you create or open a project directly in STM32CubeIDE, it automatically manages the code generation paths and structure.
CubeIDE integrates CubeMX internally, so it locks the [Generate Under Root] option to maintain consistent folder management.
You will only see it enabled if you run standalone STM32CubeMX
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.