Sunday, April 22nd 2018, 3:07am 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.

Date of registration: Apr 6th 2018

Posts: 6

1

Monday, April 16th 2018, 8:21am

flicker issue

Hello,

i am using STEMWIN on stm32f769bit6. i generated one dialog using GUIBuilder and created text, graph widgets etc on it.
i am regularly updating the TEXT box in one of the task and calling GUI_Exec after that. i have enabled usage of memory device but still i could notice flicker. plz let me know whether i am using it properly??
sanjeev majumdar has attached the following file:
  • New folder.zip (50.11 kB - 13 times downloaded - Last download: Yesterday, 11:20pm)

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 561

2

Monday, April 16th 2018, 10:13am

Hi,

to avoid flickering we recommend to use multi buffering.

Just call WM_MULTIBUF_Enable(1) right after GUI_Init(). Of course, this requires emWin to be configured to use multiple buffers, but in the LCDConf.c coming from ST this should be done already.

The use of memory devices can help a little bit against flickering but is not as good as multibuffering. With memory devices only one window will get buffered and not the entire screen. If there is not enough memory available to create a memory device for a whole window only small devices will be created and only small parts of the window will be drawn. if this happens there will be no advantage of using memory devices.

Regards
Sven

Date of registration: Apr 6th 2018

Posts: 6

3

Thursday, April 19th 2018, 5:15am

hello Sven,

Thankyou for replying back. i used memdevice and i could see minimal flickering but when i use multibuffering i observed more flicker compare to the previous one.
can you please elaborate that for multibuffering do i have to enable both the layers 0 & 1 ?? also i would like to know how to utilize GUIDRV_LIN_32 & GUICC_M8888 in my present case coz when i use this driver the LCD not at all works only i could work in GUIDRV_LIN_16 & GUICC_M565. you can refer my LCDConfig poster earlier.

thank you

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 561

4

Thursday, April 19th 2018, 4:45pm

Hi,

Did you implemented multi buffering properly in your LCDConf.c?

It is not required to enable two layers for multi buffering.

Attached is an example LCD configuration for an STM32F7.
SEGGER - Schoenen has attached the following file:
  • LCDConf.zip (20.47 kB - 11 times downloaded - Last download: Yesterday, 4:42pm)

Date of registration: Apr 6th 2018

Posts: 6

5

Thursday, April 19th 2018, 5:03pm

hi,

thanks for clarifying i will try that. although i have implemented the programline_event isr where it sets the next buffer address as per the pending buffer when multi buffering is enabled but still i observe more flickering compare to memory device.