2025-02-18 09:38 PM - last edited on 2025-02-19 01:11 AM by GaetanGodart
Hi All,
I have a set of 10 screens in my project and I want 9th screen to be displayed as startup screen after performing a particular job say xyz as startup screen.
Lets say 9th screen shows the result of job xyz.
and job xyz results in reboot.
Is there a way to display 9th screen as startup screen only when job xyz is performed?
As of now I have set screen 1 as startup screen and that takes priority than screen 9.
Can changeToStartScreen() be changed dynamically?
How do I prevent screen 1 coming up as startup screen after reboot of performing job xyz?
Can changeToStartScreen() method be overwritten in model.cpp?
Thanks & Regards,
Please guide.
2025-02-19 01:57 AM
Hello @KNara.2 ,
When you have a question, please don't mention other community members.
You can refer to that post Programatically choose startup screen - STMicroelectronics Community
BR,
2025-02-19 04:17 AM
Hello @KNara.2 ,
Do you really have to do your "particular job" in the screen 1? Can you tell us a bit more about this particular job is?
1) If you indeed really have to do this operation in screen one, please have a look at this thread to see how to choose which screen to go to based on a variable.
2) However, if you doing the operation inside screen 1 is not mandatory, you could do the operation in the Model.cpp, in main.c (before the TouchGFX taskEntry)or in frontendApplication.cpp and directly start at screen 9.
3) Also, you could perhaps do your operation in screen 1 and once the operation is finished call a function to switch to screen 9 without restarting the device.
4) Finally, could the operation be done by a bootloader or something similar that happens before the main tasks / functions?
Please tell me if one of these 4 options is suitable to your project's needs.
Regards,