Deploying to target
- This article uses the ST-Link Utility to program the
STM32F746G-DISCOboard, used in this article. We assumes 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.
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
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-DISCOboard using ST-Link CLI.
Congratulations! You’ve now programmed your first TouchGFX application to target hardware. The next step discusses where to go next, now that you're proficient in basic application development.