Skip to main content
MNema.1
Associate II
July 14, 2023
Question

Touchgfx Designer removes custom files during code generation

  • July 14, 2023
  • 1 reply
  • 876 views

Hello! 
I have a following problem: I use Designer to generate some screens, and some screens I create without designer. When I create a custom screen (not the screen that I draw in designer) I create two folders:
include/gui/my_screen (with myView.hpp and myPresenter.hpp in it)
src/my_screen  (with myView.cpp and myPresenter.cpp in it)
the project builds ok in STM32CubeIDE.
but then if I run simulator or code generation in the Designer myPresenter.cpp and myPresenter.hpp are removed. 
Why? How can I avoid it?
Thank you.


This topic has been closed for replies.

1 reply

Osman SOYKURT
ST Technical Moderator
July 17, 2023

Hello @MNema.1 ,

If you use a version control tool, you can prevent the deletion of these folders. So, do not commit the changes of deletion.
Hope it helps :)

ST Software Developer | TouchGFX