GithubHelp home page GithubHelp logo

replaysmike / stm32cubeide-touchgfx-fix Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 4.0 28 KB

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

C# 47.52% C 52.48%
touchgfx cubemx xml stm32

stm32cubeide-touchgfx-fix's Introduction

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

stm32cubeide-touchgfx-fix's People

Contributors

replaysmike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.