Deploying an example application
- This article explains how to compile and deploy the drag example using the GCC cross compiler and the
STM32F746G-DISCO
board. If you have a different board or use a different compiler, please refer to the Deploying your application section of the knowledge base instead. Also bear in mind that not all example applications are available for all boards.- The ST-Link Utility is used to program the board in this article. We assume that you’ve already installed it on your PC.
Now let’s deploy our application to one of the boards supported by TouchGFX. We support three toolchains for ARM Cortex-M:
- IAR Embedded Workbench
- Keil uVision
- GCC ARM Embedded
For this step, we’ll use the GNU toolchain for ARM Cortex-M, which is pre-bundled with the TouchGFX Development Environment.
The target/
folder of your application contains projects for every board supported by TouchGFX. To build an application for the STM32F746G-DISCO
board (which has the same dimensions as your application) using gcc
, navigate to the root of your application and execute the following command:
$ make -f target/ST/STM32F746G-DISCO/gcc/Makefile flash
The make
command now points out a Makefile located inside the target/
folder, rather than the simulator/
folder. The command does the following:
- Outputs binaries to
build/bin
: Internal-, external- and combined binaries. - Programs the internal and external flash of the
STM32F746G-DISCO
board using ST-Link CLI.
Congratulations! You’ve now programmed your first TouchGFX application to target hardware. The next tutorial goes on explaining how to create your own first application.