flicker issue

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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??
      Files
      • New folder.zip

        (50.11 kB, downloaded 332 times, last: )
    • 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
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.
    • 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
    • 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.
      Files
      • LCDConf.zip

        (20.47 kB, downloaded 562 times, last: )
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.
    • 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.