cancel
Showing results for 
Search instead for 
Did you mean: 

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

Joseph1
Associate

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?

0 REPLIES 0