Hello I've tried to configure the NXP emWin example for the i.mxrt1170 evaluation board as multilayer,
the following steps have been done:
1) in GUIConf.h set the GUI_NUM_LAYERS 2
2) emWin_support.c configured in LCD_X_Config(void) :
pPointer = GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER, COLOR_CONVERSION, 0, 1);
#ifdef ORIGINAL_FIRMWARE // modified by C.L.
LCD_SetSizeEx(0, LCD_WIDTH, LCD_HEIGHT);
LCD_SetVSizeEx(0, LCD_WIDTH, LCD_HEIGHT);
#endif
if (LCD_GetSwapXY()) {
LCD_SetSizeEx (0, LCD_HEIGHT, LCD_WIDTH);
LCD_SetVSizeEx(0, LCD_HEIGHT, LCD_WIDTH);
} else {
LCD_SetSizeEx (0, LCD_WIDTH, LCD_HEIGHT);
LCD_SetVSizeEx(0, LCD_WIDTH, LCD_HEIGHT);
}
LCD_SetVRAMAddrEx(0, (void *)VRAM_ADDR);
LCD_SetVisEx(0,1);
// set the layer 1
pPoint = GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER, COLOR_CONVERSION, 0, 1);
if (LCD_GetSwapXY()) {
LCD_SetSizeEx (1, LCD_HEIGHT, LCD_WIDTH);
LCD_SetVSizeEx(1, LCD_HEIGHT, LCD_WIDTH);
} else {
LCD_SetSizeEx (1, LCD_WIDTH, LCD_HEIGHT);
LCD_SetVSizeEx(1, LCD_WIDTH, LCD_HEIGHT);
}
LCD_SetVRAMAddrEx(1, (void *)VRAM_ADDR);
LCD_SetVisEx(1,1);
but the layer 1 has never been created and the pointer returns weird data.... Has someone same issues? Is there a specific library libemWin_M7.a configured just for one layer?
In the attached pictures the returns value for the Layer0 correctly created and Layer1 that doesn't work.
Thanks