emWin dialog box blinking getting slower and slower on STM32f429 DISCO

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

    • emWin dialog box blinking getting slower and slower on STM32f429 DISCO

      Hello
      i have a very simple application on STM32f429 DISCO : alternatively display dialog box1 / dialog box 2
      After a few second the blinking of the dialog box is very slow.
      What can happen the make the system slow down ?


      1) Each dialog box has a 200ms timer that calls the other dialog box :
      case WM_TIMER:
      CreateFramewin_DLG_Startup();

      case WM_TIMER:
      CreateFramewin_DLG_Status_menu();

      2) GUI_ALLOC_GetNumFreeBytes() returns 102948 free bytes

      3) each dialog box prints bitmaps :


      case WM_INIT_DIALOG:

      hItem = pMsg->hWin;
      FRAMEWIN_SetTitleVis(hWin, 0);
      hItem = WM_GetDialogItem(pMsg->hWin, ID_IMAGE_SAND_GLASS);
      IMAGE_SetBitmap(hItem, &bmsandglass);

      4) SDRAM is not used

      thanks for any support
      Best regards
    • Hi,

      Do you create each 200ms a new dialog?

      Are these dialogs getting deleted at some point?

      But for now I can't say why it's getting slower. I would expect that you run out of memory at some point if these dialogs are not getting deleted.

      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.