cancel
Showing results for 
Search instead for 
Did you mean: 

What is the reason that TouchGFX is not generating the conversion statement code for the new screen?

w3061433628
Associate

I'm having trouble creating multiple screens, at the moment it has more than 5 screens and they all work fine with the code (void FrontendApplicationBase::gotoMainScreenNoTransition() ) but when I try to add another screen, TouchGFX doesn't generate the Transition declaration code for the screen new screen but and does not declare this in the FrontendApplicationBase.cpp class:

Instead, for all other screens, it generates the following:

void FrontendApplicationBase::gotoMainScreenNoTransition()
{
transitionCallback = touchgfx::Callback(this, & FrontendApplication::gotoMainScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}

And the FrontendApplicationBase.hpp doesn't have a

void gotoScreen1ScreenNoTransition();;

Any ideas would be helpful.

 

*This post has been translated from Chinese to comply with the ST Community guidelines.

1 REPLY 1
JohanAstrup
ST Employee

Hello @w3061433628.

To save flash memory, TouchGFX generates only the screen transitions that are actually used.
If you only need the transition function in your code and do not already have an existing interaction for it, you can create an empty interaction that changes screen, as shown below.

JohanAstrup_0-1753883812347.png

Then, the function gotoScreen1ScreenNoTransition() will be generated.

Best regards,
Johan