-
Notifications
You must be signed in to change notification settings - Fork 0
Part 5: TouchGFX Designer
TouchGFX applications are modeled after Model-View-Presenter design pattern.
TouchGFX Designer (re)generates code that provides base classes. User classes are derived from these base classes and implement the graphical interface and business logic. We may only edit the code in /TouchGFX/gui/
and provide needed assets in /TouchGFX/assets/
, since these are guaranteed to never be overwritten.
To avoid having to flash the memory each time we compile the application, which is slow and wears down embedded flash, we can use the simulator provided by TouchGFX Designer. Click the middle button to open it.
You can also use the simulator in Visual Studio and use its debugging capabilites, which I found very convenient.
Open the Visual Studio project located in src\stm32\KrisRaycaster\TouchGFX\simulator\msvs
.
Press the rightmost button to flash program to embedded memory. If you have a different board than mine, you will have to edit build settings in TouchGFX Designer. I recommend you copy build settings from one of the example projects provided by TouchGFX, which will be auto-generated to work on your board. Afterwise you can tailor the defaults to your needs.