This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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
  • I found in Keil, you should not select NoInit for RAM memory area, looks emWin reply on compiler to initialize the uninitialized variable to 0. If you select NoInit, the keil not initialize the uninitialized variable for you.

    It is just my guess, but it works for my case.

Reply
  • I found in Keil, you should not select NoInit for RAM memory area, looks emWin reply on compiler to initialize the uninitialized variable to 0. If you select NoInit, the keil not initialize the uninitialized variable for you.

    It is just my guess, but it works for my case.

Children
No data