2016-11-18 05:54 AM
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??2016-11-18 06:09 AM
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.Regards2016-11-18 06:44 AM
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.2016-11-18 07:41 AM
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. Regards2016-11-18 08:26 AM
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 ?2016-11-28 06:10 AM
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???