2019-10-20 01:23 PM
Hi everyone,
I have developed a GUI based on STM32F769I-DISCO Board. The GUI works perfectly fine on the TouchGFX simulator. It also flashes perfectly inside the target board. However, in my GUI, I have added a code such that when a certain button is pressed, a Custom Keyboard pops up (becomes visible). The keyboard is my custom designed on the custom container and added in the Main Screen. The keyboard works great in simulator. However, on target board, as soon as I press the button, the GUI Freezes and never resumes until I reset the board. It then again resumes whenever the keyboard is supposed to pop-up. Any suggestions or ideas as to why this might be happening??
Thanks.
2019-10-20 04:35 PM
Possibilities:
Debug your code and see where it gets stuck.
2019-10-21 02:02 AM
I would also check what your application is doing at the time of "freeze", as @TDK states.
Is there anything special about your keyboard? The framework has some asserts to guard for lack of buffer for CanvasWidget, wrong pixel format vs what you've selected for your LCD driver, etc. You may be running into one of those (If your custom keyboard uses RGB565 images but you're using LCD24bpp).
/Martin
2019-10-21 12:29 PM
The complete GUI consists of similar images. The keyboard is no different. Also, the GUI crashes the moment keyboard is setVisible. All other elements and images and transitions work fine.
2019-10-22 12:33 AM
Should I share my project files for you to debug?
2019-10-22 02:45 AM
Maybe! What about your OS Task Stack size?
2019-10-22 12:22 PM
I am not sure where to find this. Could you please explain?
2019-10-23 12:47 PM
@Martin KJELDSEN If you can please have a brief look and find out the issue. I know you are a very busy person, just some time you can spare please. I am attaching the project TeacherUI.zip. It will work fine on the simulator and crashes on the hardware only when the custom keyboard is set visible.
2019-10-23 01:15 PM
Hi @AKetc,
Took a look at your project. Didn't compile for me. I've removed the following line because buffer is undefined.
memset(usernameBuffer, 0, sizeof(buffer));
If you say it crashes when keyboard is visible. Are you able to debug this? Figure out where the program counter is, what your application is doing ? When you say it crashes when the custom keyboard is visible - how do you know this? Because you're trying to enter the login screen and it does before it shows the keyboard? Or can you actually see the keyboard? etc! So many questions =)
A tip: You don't need to invalidate when setting things up in setupScreen().
2019-10-23 07:17 PM
I cant even see the keyboard at all. The login screen opens up and and I have placed a button there. The button press calls a virtual function where I am setting the keybaord to visible. At this point, it crashes as soon as I press the button. I removed the setVisible(true) from the code and then flashed it. Everyhing worked perfectly fine. It's just that my GUI can't diaplay the keyboard.
P.S sorry for the memset line, I added it laat night before attaching my project because I was trying multiple things to get it working.