Skip to content

Patches project files generated by CubeMX for STM32CubeIDE to work with TouchGFX

Notifications You must be signed in to change notification settings

replaysMike/STM32CubeIDE-TouchGFX-Fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

STM32CubeIDE-TouchGFX-Fix

Patches project files generated by CubeMX for STM32CubeIDE to work with TouchGFX

Background

When generating TouchGFX projects using CubeMX and the STM32CubeIDE application, it will clobber a bunch of settings in the project XML that require you to configure each time. Things like path/file excludes, duplicate entries, and of course the TouchGFX required includes. Super annoying, and since ST/TouchGFX team can't get around to fixing this in a timely manner this patch was created.

Usage

It's a .NET Core application which you can run from the command line (Windows 10). After running the utility, you should be able to refresh your project (Right-click your project, choose Refresh) and build afterwards. Note that the utility will always create a backup of the project file before patching it - but as with all software you should rely on your own backups in case of the apocolypse.

Run a pre-built release

Download the latest release, and run as follows:

STM32CubeIDE-TouchGFX-Fix -p C:\MyTouchGFXProjectLocation

or

Build from source

dotnet build
dotnet publish -c Release -r win10-x64

or optionally build it / run in Visual Studio.

Newlib/FreeRTOS patch

The patcher now also patches ST's broken _sbrk implementation in FreeRTOS thanks to Dave Nadler's Newlib/FreeRTOS patch! If you don't want this to happen, pass -newlib to skip this part of the patch as it's enabled by default.

Notes

It will patch the .cproject XML file to set the appropriate includes/source values required for building with TouchGFX.

Pre-Build step

You can add this patcher as a pre-build step to your project (Project Properties -> C/C++ Build -> Settings -> Build Steps -> Pre-build steps) however I haven't found a way to get the IDE to refresh the project so you would need to build, refresh the project, then build again :-/

About

Patches project files generated by CubeMX for STM32CubeIDE to work with TouchGFX

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published