Hello everyone,
I am develop an application on a STM32F469I Discovery Board with StemWin Graphics on Keil MDK uVision 5.24.
The tests with firmware examples worked well, but I get strange problems when I change to the CubeMX front end.
It's impossible to write text to the Display, if after GUI_Init any Delays (GUI_Delays, HAL_Delays, Large Loop, etc.) greater 20 ms occour.
I reduce the Problem at a very simple test program:
· Create new Project with CubeMX 4.25 for the STM32F469I Discovery Board with all default settings.
· Generate Code for Keil MDK 5.24
· Change in GUI_App.c
void GRAPHICS_MainTask(void) {
GUI_Init();
GUI_Clear();
GUI_SetColor(GUI_WHITE);
GUI_SetFont(&GUI_Font32_1);
GUI_GotoXY(100,100);
GUI_DispString("Hello world!");
GUI_Exec();
GUI_Delay(100);
GUI_GotoXY(100,200);
GUI_DispString("BAD ERROR"); // Text is on the Display if Delay < 20, Delay = 30 show turncated text
GUI_Exec();
while(1)
{
HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin);
GUI_Delay(500);
}
}
I would be very grateful if someone had a solution.
The CubeMX project file is attatched below.
Lot of thanks!
I am develop an application on a STM32F469I Discovery Board with StemWin Graphics on Keil MDK uVision 5.24.
The tests with firmware examples worked well, but I get strange problems when I change to the CubeMX front end.
It's impossible to write text to the Display, if after GUI_Init any Delays (GUI_Delays, HAL_Delays, Large Loop, etc.) greater 20 ms occour.
I reduce the Problem at a very simple test program:
· Create new Project with CubeMX 4.25 for the STM32F469I Discovery Board with all default settings.
· Generate Code for Keil MDK 5.24
· Change in GUI_App.c
void GRAPHICS_MainTask(void) {
GUI_Init();
GUI_Clear();
GUI_SetColor(GUI_WHITE);
GUI_SetFont(&GUI_Font32_1);
GUI_GotoXY(100,100);
GUI_DispString("Hello world!");
GUI_Exec();
GUI_Delay(100);
GUI_GotoXY(100,200);
GUI_DispString("BAD ERROR"); // Text is on the Display if Delay < 20, Delay = 30 show turncated text
GUI_Exec();
while(1)
{
HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin);
GUI_Delay(500);
}
}
I would be very grateful if someone had a solution.
The CubeMX project file is attatched below.
Lot of thanks!