cancel
Showing results for 
Search instead for 
Did you mean: 

Can't disable generate code under root

I_ve_got_a_problem
Associate III

I'm having an error where i get not such file or directory in an include but the file is there exactly where its located in the project that that touchGFX generates for my board

I_ve_got_a_problem_0-1713249719986.png

And while reading the documentation I saw that In Project manager, the option generate code under root should be off, and I thought maybe this was the cause, but I don't know,

 

The thing is i can't disable this option, it appears in grey and i can't disable it, I get that I can't change the structure of an already created project, but even if i create a new project by doing new--> STM32 Project, when the .IOC files open some files are already created and I can't disable it either.

I_ve_got_a_problem_2-1713249980521.png

 

I'm using STM32CubeIDE.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @I_ve_got_a_problem ,

That is a strange issue you are facing. Let's start from the top to see where the problem might have occurred. First of all, are you using STM32CubeIDE to create a project? Keep in mind that the process should start from STM32CubeMX, not STM32CubeIDE.

Secondly, are you using a custom board based on the STM32H735, or are you using the STM32H735G-DK? 
If it is the latter, then you don't need to create a project from STM32CubeMX. There is already a TouchGFX Board Setup ready for the STM32H735G-DK that you can use to develop your GUI easily and quickly. 

STM32H735G DK TouchGFX Board SetupSTM32H735G DK TouchGFX Board Setup

If it is the first case, then go to STM32CubeMX, start a new project, choose the MCU you are using (STM32H735...), and the click 'Start Project'

For instance, STM32H735IGK6For instance, STM32H735IGK6

Once the project starts, you can go to 'Project Manager' and choose the 'Toolchain' you need (or disable Generate Under Root). You can continue the rest of the process by following the TouchGFX Board bring up documentations 

I hope this helps you

Mohammad MORADI
ST Software Developer | TouchGFX

View solution in original post

1 REPLY 1

Hello @I_ve_got_a_problem ,

That is a strange issue you are facing. Let's start from the top to see where the problem might have occurred. First of all, are you using STM32CubeIDE to create a project? Keep in mind that the process should start from STM32CubeMX, not STM32CubeIDE.

Secondly, are you using a custom board based on the STM32H735, or are you using the STM32H735G-DK? 
If it is the latter, then you don't need to create a project from STM32CubeMX. There is already a TouchGFX Board Setup ready for the STM32H735G-DK that you can use to develop your GUI easily and quickly. 

STM32H735G DK TouchGFX Board SetupSTM32H735G DK TouchGFX Board Setup

If it is the first case, then go to STM32CubeMX, start a new project, choose the MCU you are using (STM32H735...), and the click 'Start Project'

For instance, STM32H735IGK6For instance, STM32H735IGK6

Once the project starts, you can go to 'Project Manager' and choose the 'Toolchain' you need (or disable Generate Under Root). You can continue the rest of the process by following the TouchGFX Board bring up documentations 

I hope this helps you

Mohammad MORADI
ST Software Developer | TouchGFX