Hi Everyone,
I am trying to get started with STemWin using STM32F769I-DISCO board.
Usually, the Cube Framework provided by ST should work out of the box, but in my case, I started with a simple "STemWin_HelloWorld" example, and whatever is written in it works.
The STemWin_HelloWorld example is as below.
void MainTask(void) {
GUI_Clear();
GUI_SetFont(&GUI_Font32_1);
GUI_DispStringAt("Hello world!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
while(1);
}
What I did, I just added another string to display and a 1sec delay (I have started learning so for me this is a hello world program)
void MainTask(void) {
GUI_Clear();
GUI_SetFont(&GUI_Font32_1);
GUI_DispString("Hello World from STM32F7\r\n");
GUI_Delay(1000);
GUI_DispStringAt("Hello world!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
while(1);
}
As Can be seen above I just updated my program with a display string function followed by a GUI_Delay function.
But my second text of "Hello World" is not displayed on the screen, while GUI_Delay function is not blocking the control flow, because in debugging session I reached the while loop.
If I remove the GUI_Delay function, I can see both strings on the LCD screen.
Another strange thing is I can't single-step debug my project, If I do so I can't see anything on LCD display.
What I understood is that GUI_Delay function is made up of some delay and GUI_Exec function, even I tried to use the function GUI_X_Delay followed by GUI_Exec, but this also works only time.
So at the moment I have two problems.
* I can't single-step debug my project, technically I can, but then I don't see anything on display.
* GUI_Delay, GUI_Exec functions are not working, or I can say that emWin APIs stopped working after using these functions.
If someone has faced a similar problem or has some idea about this, please let me know..
This example is directly from the CubeF7 example without any modification, the only modification I have done is the one which I mentioned above.
Thanks in advance.