The “Generate under Root” option is grayed out and cannot be changed.
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?

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?

Hello
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.