Saturday, April 21st 2018, 3:24pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Mosbat

Beginner

Date of registration: Nov 4th 2016

Posts: 4

1

Friday, November 4th 2016, 11:13am

Flickering after running for a while .

Hi,
I have created a dialog window with 3 custom buttons and used the following code to update the text of one of them constantly.
every thing is good after run and my button text updates fine. but almost after 3 minute my screen become flickering with same rate of reading the uart and nothing works.
What might be causing the problem?
i used LPC1788+ 32MbyteSDRAM+clock is 120mhz+emwin 5.16+keil

here is the code after some simplicty:

#define GUI_SUPPORT_MEMDEV (1)

[b]Dialog_WindowCB{
WM_PAINT:
Button_Text=UART_READ;
break;
}

main{
WM_SetCreateFlags(WM_CF_MEMDEV);
GUI_Init();

while(1){
if (!Timer)
{
SendUART(read_command);
Timer=500ms;
}

if(Uart_Response)
{
HMI_Refresh=1;
Uart_Response=0;
}

if(HMI_Refresh) WM_Invalidate(Dialog_Window);

HMI_Refresh=0;
GUI_Exec();
}}

Please HELP ME........
[/b]

This post has been edited 4 times, last edit by "Mosbat" (Nov 8th 2016, 7:05am)