2025-02-10 3:57 AM - last edited on 2025-02-10 4:07 AM by GaetanGodart
Hello,
I am trying to configure project manually for STM32H745I-Disco from scratch (without using any example template).
used app versions
CubeIde 1.17.0
Touchgfx 4.23.0
cubemx 6.12.0
I configured everything from cube mx and also created a blank UI from Touchgfx and generated code from there. But i am always getting errors like below:
../TouchGFX/target/generated/STM32DMA.hpp:21:10: fatal error: touchgfx/hal/BlitOp.hpp: No such file or directory
21 | #include <touchgfx/hal/BlitOp.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
../TouchGFX/target/generated/TouchGFXConfiguration.cpp:19:10: fatal error: texts/TypedTextDatabase.hpp: No such file or directory
19 | #include <texts/TypedTextDatabase.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../TouchGFX/target/STM32TouchController.cpp:25:
../TouchGFX/target/STM32TouchController.hpp:28:10: fatal error: platform/driver/touch/TouchController.hpp: No such file or directory
28 | #include <platform/driver/touch/TouchController.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../TouchGFX/target/generated/TouchGFXGeneratedHAL.cpp:19:
../TouchGFX/target/generated/TouchGFXGeneratedHAL.hpp:21:10: fatal error: touchgfx/hal/HAL.hpp: No such file or directory
21 | #include <touchgfx/hal/HAL.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [TouchGFX/target/generated/subdir.mk:28: TouchGFX/target/generated/STM32DMA.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [TouchGFX/target/generated/subdir.mk:28: TouchGFX/target/generated/TouchGFXConfiguration.o] Error 1
../TouchGFX/target/TouchGFXGPIO.cpp:23:10: fatal error: touchgfx/hal/GPIO.hpp: No such file or directory
23 | #include <touchgfx/hal/GPIO.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [TouchGFX/target/subdir.mk:25: TouchGFX/target/STM32TouchController.o] Error 1
../TouchGFX/simulator/main.cpp:1:10: fatal error: platform/hal/simulator/sdl2/HALSDL2.hpp: No such file or directory
1 | #include <platform/hal/simulator/sdl2/HALSDL2.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
when i tried to reference those file on stmcubeide it can reference to it but during compilation
it shows No such file or directory.
I keep on including paths but later some other errors starts appearing. Did anyone face similar problems?
I viewed similar problem discussed on ST community and followed it but i couldn't resolve mine.
Regards,
Basnet
Solved! Go to Solution.
2025-02-28 5:09 AM
Hello @GaetanGodart ,
Thanks for your reply and responses, i am really glad seeing quick responses on community.
I have recreated the project from stmcubeide instead of starting from cube Mx and its fine now.
Kind regards,
Binod
2025-02-10 4:53 AM
Hello @bbasnet ,
If you want to make a project from scratch using STM32CubeIDE, you have to include all the files' paths.
It seems you are doing that since you say "I keep on including paths but later some other errors starts appearing.".
If new errors appears (I assume the old errors disappear), it means you are solving the previous errors so you are going in the right direction.
I would guess you are doing the right thing by including missing paths. Please come back to me if you are stuck somewhere.
Regards,
2025-02-10 5:13 AM
Helllo @GaetanGodart ,
Thank you so much for responding on my post.
After i included all the missing paths now i got below errors.
any help would be great. Thanks
2025-02-18 1:25 AM
Hello @bbasnet ,
You should not have any error on code from the framework.
Also, it is weird that the other errors are from a file in windows, not TouchGFX.
Did you change your default compiler or something similar that could cause framework functions to not compile properly and to force the use of some windows file instead of TouchGFX files?
Regrads,
2025-02-24 4:40 AM
Hello @bbasnet ,
Have you had time to investigate on your setup?
Regards,
2025-02-28 5:09 AM
Hello @GaetanGodart ,
Thanks for your reply and responses, i am really glad seeing quick responses on community.
I have recreated the project from stmcubeide instead of starting from cube Mx and its fine now.
Kind regards,
Binod