AnsweredAssumed Answered

EMWIN AND FREERTOS IN IMXRT1050 EVK

Question asked by Anjalik Krishna on Jun 28, 2018
Latest reply on Jul 2, 2018 by CarlosCasillas

Hi, 

   I am trying to display a simple slider in the LCD using the below code snippet in iMXRT1050 EVK running amazon FreeRTOS.

 

WM_HWIN Createwin(void) {
WM_HWIN hWin;
hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
return hWin;
}


static void initial_logo(void *pvParameter);

/*
* @brief Application entry point.
*/
int main(void) {

/* Init board hardware. */
BOARD_ConfigMPU();
BOARD_InitBootPins();
BOARD_InitBootClocks();
BOARD_InitDebugConsole();
BOARD_InitLcd();
BOARD_InitLcdifPixelClock();

if(xTaskCreate(initial_logo,"logo display",configMINIMAL_STACK_SIZE + 2200 ,NULL,uart_task_PRIORITY,NULL) != pdPASS)
{
PRINTF("\n Task Creation Failed \r\n");
while(1)
;
}

vTaskStartScheduler();

for(;;){
PRINTF("\n Memory \r\n");
}
}

static void initial_logo(void *pvParameter)
{
GUI_Init();
Createwin();
while(1)
{

  GUI_Delay(50);
}
}

 

 

The task is created succesfully . But I expected slider in the GUI is not appearing. Initially I was getting the hard fault error while running the program. After increasing the stack size of the task , the error was solved.

 

Whether the current issue is also due to stack related or something else.?

 

Any help would be appreciated

Outcomes