Skip to main content
er3481
Associate III
November 18, 2016
Question

stm32f429 memory device problem

  • November 18, 2016
  • 5 replies
  • 810 views
Posted on November 18, 2016 at 14:54

Hi,

I am using stemwin memory device for my own stm32f429 board with 8Mbyte external ram. When i create a 320*240 memory device , the lcd is flickering, but when i create a 320*230 memory device it does not flickers. For stemwin gui configuration i am using the code below:

#define GUI_NUMBYTES  (1024) * 160

void GUI_X_Config(void) {

  static U32 aMemory[GUI_NUMBYTES / 4]; //

  //

  // Assign memory to emWin

  //

  GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);

  //

  // Set default font

  //

  GUI_SetDefaultFont(GUI_FONT_8X16);

}

when i try to increase the gui_numbyte more than 1024*160, the compiler gives error for memory. I think i can not increase the memory size for external ram. Any adives??
    This topic has been closed for replies.

    5 replies

    slimen
    Visitor II
    November 18, 2016
    Posted on November 18, 2016 at 15:09

    Hello,

    It seems you have issues with memory assigned to emWin: there is not enough memory available.

    So,  try increase the size of the memory for emWin assigned in GUI_X_Config() function which is in the GUI configuration file GUIConf.c.

    Regards

    er3481
    er3481Author
    Associate III
    November 18, 2016
    Posted on November 18, 2016 at 15:44

    Hi,

    when i try to increase the memory from GUI_X_Config function , the compiler gives error for section placement. So i can not increase the memory more than 1024*160.
    slimen
    Visitor II
    November 18, 2016
    Posted on November 18, 2016 at 16:41

    Hi,

    I just pay attention that you have error when increase the memory.

    You should check and take in consideration that the issue may be caused by one of the following:

    - Stack size is too low.

    - Wrong initialization of the display controller.

    - Wrong configuration of the display interface. 

    Regards

    er3481
    er3481Author
    Associate III
    November 18, 2016
    Posted on November 18, 2016 at 17:26

    Hi,

    I am using the same ram on the stm32f429 discovery board. so i am using the same initialization and configuration. For the stack size , how can i check it and how can i edit ?

    er3481
    er3481Author
    Associate III
    November 28, 2016
    Posted on November 28, 2016 at 15:10

    Hi,

    When i edit the GUI_Conf like this, i can use external ram, but after a while, the stack goes to hardfault handler callback function.

     ''static U32 aMemory[GUI_NUMBYTES / 4] @ 0xD0000000;''

     

     

    Any advise???