cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f429 memory device problem

er3481
Senior
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??
5 REPLIES 5
slimen
Senior
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
Senior
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
Senior
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
Senior
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
Senior
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???