Skip to main content
Adams
Associate
October 7, 2025
Solved

The “Generate under Root” option is grayed out and cannot be changed.

  • October 7, 2025
  • 1 reply
  • 221 views

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?

Adams_0-1759802593373.png

 

Best answer by Mahmoud Ben Romdhane

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

 

1 reply

Technical Moderator
October 7, 2025

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.