emWin Configuration with Memory allocation issue

I am trying to write my own LCD driver with emWin, I use the GUIDRV_Template, and GUICC_1 Color conversion. When I called the GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER, COLOR_CONVERSION, 0, 0),
the device get into a dead loop, I checked the assambly code, I find it enter this function
_TestRAM 0x0005e52d Thumb Code 274 gui_alloc.o(i._TestRAM).

I assume the gui_library need memory allocation but I can not get the memory, does anybody can give any advice how to set the heap for emWin library?

Parents
  • It seems you have issues with memory assigned to emWin.

    Memory for emWin is assigned in GUI_X_Config function which is in the GUI configuration file GUIConf.c. This memory is used for all GUI related resources.

    Memory is also tested at run time in _TestRAM function for 32/16/8-bit access.

    emWin will emit an error message via GUI_X_ErrorOut function before it enters a dead loop on critical errors.

    Default implementation of that function is in file GUI_X.c. You can check the error message to get more information.

Reply
  • It seems you have issues with memory assigned to emWin.

    Memory for emWin is assigned in GUI_X_Config function which is in the GUI configuration file GUIConf.c. This memory is used for all GUI related resources.

    Memory is also tested at run time in _TestRAM function for 32/16/8-bit access.

    emWin will emit an error message via GUI_X_ErrorOut function before it enters a dead loop on critical errors.

    Default implementation of that function is in file GUI_X.c. You can check the error message to get more information.

Children
More questions in this forum