Create and debug a TouchGFX application with a secure and nonsecure project setup
Summary
This brief article provides a link to GitHub repository where you will find a guide on the process of creating a TouchGFX application. The setup used is STM32CubeMX with a STM32H5 device with TrustZone® (TZ) activated, with a secure and nonsecure project structure.
The full guide including a working project for STM32H573I-DK is in the stm32-hotspot GitHub account. Click the link below to access the repository:
Prerequisites
- STM32CubeMX (version MX1)
- STM32CubeIDE
- STM32H573I-DK + USB Type-C® cable
- TouchGFX framework (X-CUBE-TOUCHGFX middleware, TouchGFXDesigner installed)
- STM32CubeProgrammer GUI
Content
- Configure the option bytes
- Create a new project using STM32CubeMX
- Open the project in the STM32CubeIDE and set up debug
- Add TouchGFX software package X-CUBE-TOUCHGFX
- Generate TouchGFX project in the TouchGFXDesigner
- GPIOs settings
- Adjust available heap and stack size
- MPCWM settings in GTZC (Global TZ Controller)
- GPDMA settings
- Add needed source code
