emWin GUI_ALLOC_AssignMemory problem?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

emWin GUI_ALLOC_AssignMemory problem?

2,010 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ofheybeli on Wed Dec 05 02:55:09 MST 2012
My Code:
#define GUI_NUMBYTES   ( 1024 * 1024 * 16 ) / 8
#define GUI_BLOCKSIZE 0x80

void GUI_X_Config(void) {
static U32 aMemory[GUI_NUMBYTES / 4];
GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
}
Error

.\Output\GUI_deneme.axf: Error: L6406E: No space in execution regions with .ANY selector matching guiconf.o(.bss).
.\Output\GUI_deneme.axf: Error: L6407E: Sections of aggregate size 0x200000 bytes could not fit into .ANY selector(s).

ı don't undrestand where am ı wrong? Please help?
Labels (1)
0 Kudos
3 Replies

958 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ofheybeli on Thu Jan 03 09:36:33 MST 2013


#include "GUI.h"

#define GUI_NUMBYTES  (1024 * 1024) * 12 // 12 MByte
#define GUI_BLOCKSIZE 0x128
#define SDRAM_BASE0xA0000000


void GUI_X_Config(void)
{
volatile U32 *aMemory = (U32 *)(SDRAM_BASE+0x1400000); // 20-32 MB arasi emWin kullaniyor
  GUI_ALLOC_AssignMemory((U32*)aMemory, GUI_NUMBYTES);
  GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
}

ı changed the aMemory base address, problem can solved
0 Kudos

958 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Tue Dec 11 00:40:37 MST 2012
So tell us what you did to resolve the issue.
That way others can benefit from your experience.

Give something back.
0 Kudos

958 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ofheybeli on Wed Dec 05 05:30:41 MST 2012
I solved problem.
0 Kudos