Hi, i'm trying to understand how to work with memory device using a stm32f4 discovery board with lcd resolution 320x240.
I'm trying to manipulate the contents of a memory device, stored somewhere in sram, with the returned poiter by GUI_MEMDEV_GetDataPtr(hMem) function. This function return a null pointer (zero): is that possible?
How can i understand where is the allocated sram area for LCD?
I'm using keil compiler
Thanks!
Display All
I'm trying to manipulate the contents of a memory device, stored somewhere in sram, with the returned poiter by GUI_MEMDEV_GetDataPtr(hMem) function. This function return a null pointer (zero): is that possible?
How can i understand where is the allocated sram area for LCD?
I'm using keil compiler
Thanks!
C Source Code
- GUI_SelectLayer(0);
- GUI_MEMDEV_Handle hMem = GUI_MEMDEV_Create(0, 0, 320, 240);
- GUI_MEMDEV_Select(hMem);
- GUI_DrawLine(0, 0, 320, 240);
- GUI_MEMDEV_Select(0);
- //
- // Select layer 0
- //
- GUI_SelectLayer(0);
- //
- // The following line copies the Memory Device to layer 1 and not to layer 0
- //
- GUI_MEMDEV_CopyToLCD(hMem);
- unsigned int* ptr=(unsigned int*)GUI_MEMDEV_GetDataPtr(hMem);
The post was edited 2 times, last by hexfet13 ().