GitXplorerGitXplorer
r

STM32CubeIDE-TouchGFX-Fix

public
5 stars
4 forks
0 issues

Commits

List of commits on branch master.
Verified
66929b1fe522b0836dddf5078a0cdfbf529b6194

Update README.md

rreplaysMike committed 5 years ago
Verified
9b17981dd2a18b8b69d275edbcf0ea5425353725

Update README.md

rreplaysMike committed 5 years ago
Verified
b80d313d8828ff9279cd879388fe35d576780093

Update README.md

rreplaysMike committed 5 years ago
Unverified
1224303df9f9b88317bdc490164bec04a71042ad

Merge branch 'master' of https://github.com/replaysMike/STM32CubeIDE-TouchGFX-Fix

rreplaysMike committed 5 years ago
Unverified
c10ff854b61259070793189aa547ca946a893491

Added Dave Nadlers patch to nlib/freertos - via http://www.nadler.com/embedded/newlibAndFreeRTOS.html

rreplaysMike committed 5 years ago
Verified
3b5df17d65348add2d58e93f548173209f5a11ed

Update README.md

rreplaysMike committed 5 years ago

README

The README file for this repository.

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 :-/