Logo
Sign in
  1. TouchGFX
  2. Getting Started
  3. Tutorial 1: Installing TouchGFX and running examples

Step 4: Deploying an example application

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:

  1. IAR Embedded Workbench
  2. Keil uVision
  3. 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:

  1. Outputs binaries to build/bin: Internal-, external- and combined binaries.
  2. 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.

Was this article helpful?
0 out of 0 found this helpful
  • Facebook
  • Twitter
  • LinkedIn
  • Google+
Have more questions? Please create a post on the forum.

Related articles

  • Step 1: Creating your own application
  • Step 3: Running an example application
  • Step 1: Installation
  • Step 2: Compiling an example application
  • Non-Designer Getting Started