Skip to main content
PBU
Associate III
February 13, 2019
Question

Flash custom target using TouchGFX Designer

  • February 13, 2019
  • 1 reply
  • 1220 views

Hi,

I'm using STM32f779NI Eval board, but i have changed the display in board with 24Bit RGB parallel Interface. Is it possible to flash the target directly using TouchGFX Designer.

This topic has been closed for replies.

1 reply

Martin KJELDSEN
Principal III
February 13, 2019

Hi @PBU​,

It's possible. Basically, the "Run target" button you see in your TouchGFX project in the designer is made possible by the commands defined in the .touchgfx file. e.g.

 "GenerateAssetsCommand": "make -f simulator/gcc/Makefile assets -j10",
 
 "PostGenerateCommand": "touchgfx update_project --project-file=..\\EWARM\\MyApplication3.ewp --gui-group-name=Application/User/TouchGFX/gui --generated-group-name=Application/User/TouchGFX/generated && touchgfx update_project --project-file=simulator/msvs/Application.vcxproj",
 
"CompileSimulatorCommand": "make -f simulator/gcc/Makefile -j10",
 
"RunSimulatorCommand": "build\\bin\\simulator.exe",
 
"CompileTargetCommand": "make -f ../gcc/Makefile -j8",
 
"FlashTargetCommand": "make -f ../gcc/Makefile -j8 flash"
 

So, you see there are two commands for compiling for target and programming target. In this case, the Makefile has a "flash" option that uses ST-Link (External flashloader .stldr configuration is also in there). You can put whatever you want for the .touchfx commands.

Do you have a Touchgfx project? You could save this non-standard project as a custom application template. What you do then is create a project based on an AT, make the changes you need to to:

  1. Finish your board bringup
  2. Make sure "Run simulator" and "Run target" work (edit .touchgfx file commands at the bottom of file to your liking or keep them as is - You must then modify the makefile to use the proper external flashloader. If using Atollic, etc, you must specify some way for touchgfx to update the projects in the postgenerate .touchgfx command)
  3. Have an empty gui in your project
  4. Create your custom application template you can use to create new applications from through the designer

https://touchgfx.zendesk.com/hc/en-us/articles/115002741432-Create-custom-Application-Template

Hope this helps a bit!

Best regards,

Martin

PBU
PBUAuthor
Associate III
February 21, 2019

Hi Martin,

I have used the STM32F769 - Eval Board application template and modified resolution, & colour depth in MyApplication.touchgfx file, also made changes in stm32f769i_discovery_lcd.c & .h file since I'm using 24 Bit Parallel RGB .

i have verified the lcd driver file, it is working fine with atollic studio. My aim design and run target using the touchgfx designer .

The Application works fine while using basic widgets like text & box, and i'm getting the output in LCD. If i try to add any image or icons the LCD becomes blank.

I have verified the application.map file the images are mapped correctly, also i have also verified initialization of NOR Flash and SDRAM. Also changed the corresponding External Flash Loader in MakeFile.

While flashing the target.hex file using STM32 ST Link Utility the result is same (Blurred Image).

PBU
PBUAuthor
Associate III
February 21, 2019

Blurred Image