2023-11-11 04:05 PM - edited 2023-11-13 04:38 AM
I built a small project using TouchGFX (v4.22.1) and it compiles, simulates, and can be loaded onto an EDT EVK043013B kit. The MCU is STM32F750. When I bring the TouchGFX project into STM32CubeIDE (v1.13.1) and do a build, it gets 1 build error. It is from the TouchGFX generated code:
no matching function for call to 'touchgfx::ConstFont::ConstFont(int, int, int, int, int, int, int, int, int, int, int, int)' GeneratedFont.hpp /EVK043013B/Application/User/TouchGFX/generated/fonts/include/fonts line 34
Again, it build fine in TouchGFX, but has this error in STM32CubeIDE.
Any idea what could be the issue?
Solved! Go to Solution.
2023-11-14 07:23 AM
Thanks for the suggestion Mohammad,
Middlewares -> ST -> touchgfx -> framework -> include -> touchgfx was in the include path, but still got this error. I had an example project from the board vendor, so I copied their GeneratedFont.hpp / .cpp files into my project and it got past that error, but then started throwing errors for missing touchgfx SVG include files. I went down a rabbit hole with that, then just decided to abandon that code and start over.
I asked the vendor if they had a STM32CubeMX .ioc file for their board (it wasn't included in their TouchGFX example project). They did end up sending it to me, so I used STM32CubeMX to open it.
I followed this link Enable TouchGFX in STM32CubeMX from an answer from one of your other posts that gave me the idea to try this method.
I want to thank you for your knowledge and assistance!
2023-11-14 05:50 AM
Hello @sruby11 ,
It sounds like STM32CubeIDE has failed to connect the code to the TouchGFX framework code which is placed at Middlewares -> ST -> touchgfx -> framework -> include -> touchgfx
So, make sure the include folder is added correctly to your project. Give us more feedback on this matter
Good luck
2023-11-14 07:23 AM
Thanks for the suggestion Mohammad,
Middlewares -> ST -> touchgfx -> framework -> include -> touchgfx was in the include path, but still got this error. I had an example project from the board vendor, so I copied their GeneratedFont.hpp / .cpp files into my project and it got past that error, but then started throwing errors for missing touchgfx SVG include files. I went down a rabbit hole with that, then just decided to abandon that code and start over.
I asked the vendor if they had a STM32CubeMX .ioc file for their board (it wasn't included in their TouchGFX example project). They did end up sending it to me, so I used STM32CubeMX to open it.
I followed this link Enable TouchGFX in STM32CubeMX from an answer from one of your other posts that gave me the idea to try this method.
I want to thank you for your knowledge and assistance!
2023-11-15 02:54 AM
Glad to hear you managed to get it up and running.
You're very welcome, happy to help!