2020-01-21 04:47 PM
I want to start with TouchGFX, but I see too much people in this forum struggling to do a basic project for a development boards from ST. I imagine how hard it should be a custom board.
Has ST plans to release a basic step by step tutorial showing how to do a basic project for the STM32F746G Discovery board?
Solved! Go to Solution.
2020-01-22 12:43 AM
Just use the F746G-DISCO application template. Here, let me exemplify, for good measure.
1) Select V3 of the F746G-DISCO template. It has an .ioc file that works with CubeMX 5.5 / TouchGFX Generator, has the correct LTDC GPIO configuration for the display, and has all the additional code to setup QSPI and SDRAM and linker script to place image and font assets in external flash.
Generally, the application templates are supposed to be easy to use because we've done all the work for you. You can find any additional work done in C-code inside CubeMX generated USER CODE sections.
2) Create a stunningly beautiful application, like the one i did below with a button and a background box. Press "Generate code"
3) Press "Run target"
4) Enjoy your running application!
5) Open up the .ioc file in Cubemx 5.5, if you want and make some modifications to hardware configuration.
/Martin
2020-01-22 12:43 AM
Just use the F746G-DISCO application template. Here, let me exemplify, for good measure.
1) Select V3 of the F746G-DISCO template. It has an .ioc file that works with CubeMX 5.5 / TouchGFX Generator, has the correct LTDC GPIO configuration for the display, and has all the additional code to setup QSPI and SDRAM and linker script to place image and font assets in external flash.
Generally, the application templates are supposed to be easy to use because we've done all the work for you. You can find any additional work done in C-code inside CubeMX generated USER CODE sections.
2) Create a stunningly beautiful application, like the one i did below with a button and a background box. Press "Generate code"
3) Press "Run target"
4) Enjoy your running application!
5) Open up the .ioc file in Cubemx 5.5, if you want and make some modifications to hardware configuration.
/Martin
2020-01-22 03:10 AM
Thanks Martin, I will try it out.
Another question: Is There a way to install the F746G-DISCO template offline? My work machine only has Internet access via Virtual Machine.
2020-01-22 04:03 AM
Sure, i can share the application template here and you can simply drop it into app/packages of your TouchGFX Designer installation folder. Give me a few minutes.
2020-01-22 04:06 AM
2020-01-22 07:19 AM
Martin,
How to install the template you've posted, into the TOUCHGFX directory?
I extracted the STM32F746_DISCO-3.0.0.zip to this files:
package.json
STM32F746-back.png
STM32F746-front.png
STM32F746G_DISCO.zip
I also extracted the STM32F746G_DISCO.zip and didn't find any file with the extension .tpa to put in the directory TouchGFX/4.13.0/app/template
2020-01-22 06:50 PM
Martin,
I did a new project with the TouchGFX designer using the STM32F746G_DISCO (V3.0.0) template and the ProgressIndicator Example (V2.0.0) as UI.
Pressing the button "Run Target" The code is loaded in my F746 Disco board and run ok.
I pressed the button " Generate Code".
I opened the STM32F746G_DISCO.IOC using the STM32CubeMX V5.5.0, when press "Generate Code" button, STM32CubeIDE V1.2.0 open and when I try to build the code i got the message:
make: *** No rule to make target '../Application/User/gui/LogoARGBBilinear127QSPIPresenter.cpp', needed by 'Application/User/gui/LogoARGBBilinear127QSPIPresenter.o'. Stop.
make: *** Waiting for unfinished jobs....
Using the EWARM:
If I change the IDE to the EWARM in the STM32CubeMX, It also generates compiler errors:
cannot open source file "C:\TouchGFXProjects\MyApplication_2\TouchGFX\generated\fonts\src\Font_Asap_Regular_20_4bpp_0.cpp"
cannot open source file "C:\TouchGFXProjects\MyApplication_2\TouchGFX\generated\fonts\src\Kerning_Asap_Regular_20_4bpp.cpp"
cannot open source file "C:\TouchGFXProjects\MyApplication_2\TouchGFX\gui\src\screen1_screen\Screen1Presenter.cpp"
cannot open source file "C:\TouchGFXProjects\MyApplication_2\TouchGFX\gui\src\screen1_screen\Screen1View.cpp"
cannot open source file "C:\TouchGFXProjects\MyApplication_2\TouchGFX\generated\gui_generated\src\screen1_screen\Screen1ViewBase.cpp"
cannot open source file "C:\TouchGFXProjects\MyApplication_2\TouchGFX\generated\fonts\src\Table_Asap_Regular_20_4bpp.cpp"
Can you describe a sequence that don't generate compiler errors?
I believe I am having the same problem as other users.
2020-01-23 01:24 AM
You need to press "Generate code" in designer every time you change IDE/compiler in cubemx, because otherwise the touchgfx designer won't know what project to update or "inject" the application files into
/Martin
2020-01-23 01:24 AM
I assume you found out - I posted the installation instructions in the post just above.
2020-01-23 02:13 AM
That was only for the "cannot open source files" errors
I'm investigating the others one now (LogoARGBBilinear127QSPIPresenter)