cancel
Showing results for 
Search instead for 
Did you mean: 

Generated project from Cube MX with Touch GFX is generating the errors.

Vins
Senior

Hi Community,

When I generate the touch gfx combined project using cubemx I am getting the following errors.

Even though I gave the path, but still the errors exists.

../TouchGFX/target/generated/TouchGFXConfiguration.cpp:18:10: fatal error: texts/TypedTextDatabase.hpp: No such file or directory.

 

../TouchGFX/target/generated/TouchGFXGeneratedHAL.hpp:21:10: fatal error: touchgfx/hal/HAL.hpp: No such file or directory.

 

../TouchGFX/target/STM32TouchController.hpp:24:10: fatal error: platform/driver/touch/TouchController.hpp: No such file or directory.

 

../TouchGFX/target/generated/OSWrappers.cpp:20:10: fatal error: touchgfx/hal/HAL.hpp: No such file or directory.

 

../TouchGFX/target/generated/TouchGFXGeneratedHAL.hpp:21:10: fatal error: touchgfx/hal/HAL.hpp: No such file or directory.

Any suggestions to solve this would be greatly appreciated!

Thank you.

Vins.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @RLarr.1​ 

Follow the steps.

Step 1: Create a New STM32CubeIDE Project

1) In STM32CubeIDE > File > New > Select Part Number > Next > Set ProjectName > Click Finish

2) Enable SYS > Serial Wire (other configs can be made later)

3) Save and close ProjectName.IOC

4) Build Project (Compiling should be successful!)

Step 2: Add TouchGFX 4.20.0 to the Project

5) Open ProjectName.IOC > Enable CRC > Software Packs > Select Component > TouchGFX 4.20.0

6) Expand Software Packs > Enable Graphic Application > *LEAVE ALL TouchGFX SETTINGS TO DEFAULT*

7) Save and close IOC *DO NOT BUILD THE PROJECT *

Step 3: Generate TouchGFX 4.20.0 Templates

8) Double-click on \TouchGFX\ApplicationTemplate.touchgfx.part

9) Select "Blank UI" > Click red Import button > Click Generate Code > Close Designer using the X

Step 4: Clean & Compile Project

10) Right-click ProjectName > Select "Clean Project"

11) Right-click ProjectName > Select "Build Project" (Compiling should be successful at this stage!)

Step 5: ToughGFX Configurations and Code generation

12) Open ProjectName.IOC > Software Packs > TouchGFX > Set Screen Resolution e.g. 240x240, etc

13) Double-click on \TouchGFX\ApplicationTemplate.touchgfx.part, Click Generate Code > Close Designer using the X

14) Right-click ProjectName > Select "Clean Project"

15) Right-click ProjectName > Select "Build Project" (Compiling should be successful at this stage!)

/Vins

View solution in original post

5 REPLIES 5
Vins
Senior

Hello @Martin KJELDSEN​ ,

CubeIDE - 1.9.0 and TouchGFX 4.19.0 integration issues are not yet solved. Still I am getting the errors. I saw your video https://youtu.be/VOs2LYO7wSA and tried, but issues are not yet solved. So, any other way to solve these errors?

(I am using STM32F769AIY6TR).

RLarr.1
Associate II

I am getting the same errors now 5 months from the original post. My project is a new from scratch after updating all three tools.

STM32CubeIDE Version: 1.10.1 Build: 12716_20220707_0928 (UTC)

STM32CubeIDE Version: 1.10.1 Build: 12716_20220707_0928 (UTC)

TouchGFX Version 4.20.0

Any help or guidance would be appreciated.

If I right click on the #include <platform/driver/touch/TouchController.hpp> and select Open Declaration the file opens in STM32CubeIDE but still has the red X to the left saying no such file or directory and fails to build.

Hi @RLarr.1​ 

Follow the steps.

Step 1: Create a New STM32CubeIDE Project

1) In STM32CubeIDE > File > New > Select Part Number > Next > Set ProjectName > Click Finish

2) Enable SYS > Serial Wire (other configs can be made later)

3) Save and close ProjectName.IOC

4) Build Project (Compiling should be successful!)

Step 2: Add TouchGFX 4.20.0 to the Project

5) Open ProjectName.IOC > Enable CRC > Software Packs > Select Component > TouchGFX 4.20.0

6) Expand Software Packs > Enable Graphic Application > *LEAVE ALL TouchGFX SETTINGS TO DEFAULT*

7) Save and close IOC *DO NOT BUILD THE PROJECT *

Step 3: Generate TouchGFX 4.20.0 Templates

8) Double-click on \TouchGFX\ApplicationTemplate.touchgfx.part

9) Select "Blank UI" > Click red Import button > Click Generate Code > Close Designer using the X

Step 4: Clean & Compile Project

10) Right-click ProjectName > Select "Clean Project"

11) Right-click ProjectName > Select "Build Project" (Compiling should be successful at this stage!)

Step 5: ToughGFX Configurations and Code generation

12) Open ProjectName.IOC > Software Packs > TouchGFX > Set Screen Resolution e.g. 240x240, etc

13) Double-click on \TouchGFX\ApplicationTemplate.touchgfx.part, Click Generate Code > Close Designer using the X

14) Right-click ProjectName > Select "Clean Project"

15) Right-click ProjectName > Select "Build Project" (Compiling should be successful at this stage!)

/Vins

Thanks @Vins,

It appears the issue is importing the .ioc file from a previous project save in an older version of CubeMX. It imported OK into CubeMX but always generated the errors noted above. Manually defining the .ioc file seems to be working.

Thanks again