Skip to main content
Joseph1
Visitor II
March 7, 2019
Question

How to keep CubeMX from deleting code in STemWin GUI_App.c

  • March 7, 2019
  • 0 replies
  • 554 views

We're in a project phase where were adding peripherals incrementally and using cube to configure them. We have a GUI as well built with STemWin, but not GUIBuilder. Our GUI isn't complex but we have code that needs to be outside of the MainTask function. Every time we generate code from Cube the GUI_App.c file is written over. I know we can just run the code from another file, but it seems silly to have GUI_App.c out there only to call it.

Is there a way to prevent Cube from nuking that file?

If not, what is the purpose of the GUI_App.c since you cant put anything outside of the MainTask function?

This topic has been closed for replies.