cancel
Showing results for 
Search instead for 
Did you mean: 

STemWinLibrary522_4x9i

megahercas6
Senior
Posted on October 20, 2013 at 12:35

Hello.

Does any one try to create project that would work with GUIBuilder.exe ? I try to use STM32F429i_disco demonstration project to create project what would work with GUIBuilder, but it is just moo much complicated. I added all files needed for compiler not to chow any errors, but running simple program didin't worked.

WM_HWIN CreateFramewin(void);
int main(void)
{ 
if (SysTick_Config(SystemCoreClock / 1000))
{ 
/* Capture error */ 
while (1);
}
LCD_Init();
LCD_LayerInit();
/* LTDC reload configuration */ 
LTDC_ReloadConfig(LTDC_IMReload);
/* Enable the LTDC */
LTDC_Cmd(ENABLE);
/* Set LCD foreground layer */
LCD_SetLayer(LCD_FOREGROUND_LAYER);
LCD_SetTransparency(0);
/* Set LCD foreground layer */
LCD_SetLayer(LCD_BACKGROUND_LAYER);
/* LCD display message */
LCD_Clear(LCD_COLOR_BLUE);
LCD_SetTextColor(LCD_COLOR_BLACK); 
/* SDRAM Initialization */ 
SDRAM_Init();
SDRAM_GPIOConfig();
/* Disable write protection */
FMC_SDRAMWriteProtectionConfig(FMC_Bank2_SDRAM,DISABLE); 
LCD_Clear(LCD_COLOR_BLACK);
float a=0;
WM_HWIN hDlg;
GUI_Init();
hDlg = CreateFramewin();
while (1)
{
GUI_Delay(10);
}
}

And i added to project generated file FramewinDLG.c with a simple string inside, but all i get is black screen. Any ideas how to fix it, or maybe i mist something ? Anyway, i placed my gui to FreeRTOS task function, and now it is working as it should http://www.youtube.com/watch?v=NMAgViFbw_c
0 REPLIES 0