Skip to content
This repository was archived by the owner on May 19, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions Apps/Workout/Output/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore everything
*

# But not .gitignore itself
!.gitignore

# Don't ignore the Release folder and allow everything inside Release
!/Release/
!/Release/**
Binary file added Apps/Workout/Resources/icon_30x30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/Workout/Resources/icon_60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions Apps/Workout/Software/Apps/TouchGFX-GUI/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# build

*.vcxproj.user
*.bak

/build/
/simulator/msvs/.vs/*
/simulator/msvs/screenshots/*
/config/gcc/*

# GUI generated files
/generated/*.config
/generated/**/*.txt
/generated/**/*.cache
/generated/simulator/**/Makefile

68 changes: 68 additions & 0 deletions Apps/Workout/Software/Apps/TouchGFX-GUI/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# TouchGFX generator and simulator for the UnaWatch firmware
This project is completely independent of CubeIDE and can be added to any other project generated by CubeMX.

By default, CubeMX generates a TouchGFX folder next to the project file (.cproject) and the framework in Middlewares/ST/touchgfx.
These folders are grouped together in the current directory.

Files from the App and target folders, which are the porting level between TouchGFX and the user app, are moved to **Software/Libs/Header/Gui** and **Software/Libs/Source/Gui**

## Copy a GUI project from othe project

## Adding a GUI project to a CubeIDE project:

**NOTE: If you simply copied a GUI project from another project and added it to CubeIDE, then you only need to do step 2.**

1. If TouchGFX was added to the CubeMX project and the corresponding folders were generated and added to the project, then they must be excluded from the build:
```
./TouchGFX
./Middlewares/ST/touchgfx
```

2. Add the current folder to the project. This folder (TouchGFX-GUI) should be added as a link to a folder with files ("_Link to files and folders_"). Thus, all new generated screens will be automatically added to the project.
Make sure that the entire folder is not excluded from the build after adding.
After adding TouchGFX-GUI to the CubeIDE structure, you need to exclude the following folders from the build:
```
TouchGFX-GUI/generated/simulator/src/
TouchGFX-GUI/simulator/
TouchGFX-GUI/touchgfx/framework/source/
TouchGFX-GUI/touchgfx/os/
```

3. In the project settings, delete includes which were added by CubeMX:
```
../TouchGFX/App
../TouchGFX/target/generated
../TouchGFX/target
../Middlewares/ST/touchgfx/framework/include
../TouchGFX/generated/fonts/include
../TouchGFX/generated/gui_generated/include
../TouchGFX/generated/images/include
../TouchGFX/generated/texts/include
../TouchGFX/generated/videos/include
../TouchGFX/gui/include
```

4. In the project settings, add the necessary includes from new location:
```
../../TouchGFX-GUI/touchgfx/framework/include
../../TouchGFX-GUI/generated/fonts/include
../../TouchGFX-GUI/generated/gui_generated/include
../../TouchGFX-GUI/generated/images/include
../../TouchGFX-GUI/generated/texts/include
../../TouchGFX-GUI/generated/videos/include
../../TouchGFX-GUI/gui/include
```
5. In the project settings, in the linker section, change the path to the precompiled library:
```
"${workspace_loc:/projectname/Middlewares/ST/touchgfx/lib/core/cortex_m33/gcc}"
```
change to:
```
"${ProjDirPath}/../TouchGFX-GUI/touchgfx/lib/core/cortex_m33/gcc"
```

6. Add folders to **.gitignore** file:
```
/TouchGFX/
/Middlewares/ST/touchgfx/
```
Loading
Loading