EMWIN AND FREERTOS IN IMXRT1050 EVK

cancel
Showing results for 
Search instead for 
Did you mean: 

EMWIN AND FREERTOS IN IMXRT1050 EVK

852 Views
anjalikkrishna
Contributor III

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

Tags (2)
1 Reply

353 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Anjalik,

I’m afraid that NXP haven’t released emWin + FreeRTOS SDK examples. For specific emWin requests, you could directly contact Segger:

https://www.segger.com/products/user-interface/emwin/


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos