Memory device problem

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

    • Memory device problem

      GUI_MEMDEV_Handle hMemHome;

      hMemHome = GUI_MEMDEV_Create(0,0,128,160);

      I am having, above memntioned code. But the the GUI_MEMDEV_Create() function always return 0. I dont know the reason
      Please let me know.

      Thaankyou

      regards
      Shreevatsa YS
    • Hi,

      If the function GUI_MEMDEV_Create() returns 0 it is most likely that emWin does not have enough memory available.

      Try if it works if you increase the GUI memory (allocated by calling GUI_ALLOC_AssignMemory()).

      The memory required for this device gets calculated like this:
      xSize * ySize * color depth

      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.