AnsweredAssumed Answered

STemwin FRAME BUFFER SIZE

Question asked by oof.eco on Jun 20, 2016
I use LTDC drive RGB screen, use STM32F746 DISCO,I define this:

#define XSIZE_PHYS 480
#define YSIZE_PHYS 272


#define NUM_BUFFERS  1 /* Number of multiple buffers to be used */
#define NUM_VSCREENS 1 /* Number of virtual screens to be used */


#define BK_COLOR GUI_DARKBLUE


#undef  GUI_NUM_LAYERS
#define GUI_NUM_LAYERS 2

#define COLOR_CONVERSION_0 GUICC_M8888I
#define DISPLAY_DRIVER_0   GUIDRV_LIN_32

#if (GUI_NUM_LAYERS > 1)
  #define COLOR_CONVERSION_1 GUICC_M1555I
  #define DISPLAY_DRIVER_1   GUIDRV_LIN_16
#endif

#define LCD_LAYER0_FRAME_BUFFER  ((int)0xC0800000 - XSIZE_PHYS*YSIZE_PHYS*4*NUM_BUFFERS)
#define LCD_LAYER1_FRAME_BUFFER  ((int)0xC0800000 - XSIZE_PHYS*YSIZE_PHYS*4*NUM_BUFFERS - XSIZE_PHYS*YSIZE_PHYS*2*NUM_BUFFERS)

but i watch (0x0xC0800000 - 0x200),no any change when emwin change the screen.am I wasting memory, and how to avoid wasting memory.

Outcomes