lpcware

GUI_Init() gives "GUI_Alloc.c:\nMemory test failed in _InitOnce()." error.

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by SeleneSW on Tue Jan 07 06:21:03 MST 2014
Hello,

when the function GUI_Init() is executed, the user-defined error function is called with the following error message:
"GUI_Alloc.c:\nMemory test failed in _InitOnce()."
Then the program halts.
I reserved 3MB of memory for emWin, on external SDRAM.
I'm using the pre-compiled version of emWin 5.20 for NXP and LPCXpresso v6.1.0.

When I run a simpler application which continuously displays a few bitmaps, it works fine though the peripherals init routines, including EMC, are exactly the same.

Any help would be appreciated.

Thanks
Mario


Outcomes