cancel
Showing results for 
Search instead for 
Did you mean: 

How to load and view the professional looking TouchGFX graphical demo on a low cost STM32G0 based solution

ST AME Support NF
ST Employee
How to load and view the professional looking TouchGFX graphical demo on a low cost STM32G0 based solution

Introduction


TouchGFX framework includes support for low-cost microcontroller based applications, such as the STM32G0, with a professional looking GUI (Graphical User Interface). The new partial framebuffer minimizes the RAM needed for image building using a configurable partial frame buffer size and number of partial frame buffers. Additionally, it offers smart partial screen updates for higher user interface performance and supports inexpensive external flash. All this makes for very cost-effective GUI applications.
1855.png
This article shows how to load and run a TouchGFX demo on a cost-effective hardware platform to experience first-hand the quality and capability of the solution.
 

Demo Preparation


The demo requires the following hardware and software:
  • NUCLEO-G071RB – microcontroller board
    • STM32G071RB microcontroller
      • Cortex M0+ running at 64 MHz
      • 128KB of flash
      • 36 KB SRAM
  • X-NUCLEO-GFX01M - display shield expansion board
    • 8 MBytes of Serial SPI Flash
    • 2.2 inches SPI QVGA TFT LCD (240 by 320 pixels, 16-bit color)
    • Joystick
  • TouchGFX – GUI builder software tools and framework
  • STM32CubeProgrammer – flash loader

The memory requirements of the demo are:
  • 75 KB of internal Flash 
  • 16 KB of RAM (10 KB for Library data and 6 KB for the partial frame buffer)
  • External NOR Flash
 

Demo

 
  1. From st.com download and unzip the latest X-CUBE-TOUCHGFX
1857.png
  1. Install TouchGFX Designer - the installer is located here:
1859.png
1860.png
 
Note: Because STM32CubeProgrammer is needed for this demo, you will need to have STM32CubeProgrammer installed on your machine (see the Links section for the link).
 
  1.  Launch TouchGFX Designer
 
  1. In TouchGFX, create a project from ONLINE APPLICATIONS using the STM32G071 NUCLEO DEMO template.
1862.png
 
  1. Run target
The code is programmed into the target’s on chip memory and graphic images are loaded into the external memory. Once that is complete the code is run.
1864.png
Note: STM32CubeProgrammer is required for this step, so you need to have installed.
 
  1. Explore the capabilities of this cost-effective GUI solution by using the joystick to advance through the demos
1866.png
 

Links

TouchGFX
TouchGFX / X-CUBE-TOUCHGFX
X-NUCLEO-GFX01M1
NUCLEO-G071RB
STM32CubeProgrammer
 
Comments
KevinA
Senior

Do NOT install the STM32CubeProgrammer anywhere BUT C:\

The *.mk files are hard coded with C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin

Admiral_E
Associate

Is it possible to use another LCD instead of X-NUCLEO-GFX01M1?

Version history
Last update:
‎2021-09-24 12:14 AM
Updated by: