emWin and FreeRTOS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

emWin and FreeRTOS

跳至解决方案
1,540 次查看
Gamka
Contributor III

I am using i.MX RT1064. I have taken emWin from what has been included in SDK_2.x_EVK-MIMXRT1064 version 2.8.0. When I am using FreeRTOS with multiple tasks (one taking care of touch, one emwin, one other sensors) with this environment, after calling GUIExec() (which returns just fine), it seems that another task does not get runtime anymore (it is waiting in xTaskNotifyWait). Otherwise I can see in the screen what I am supposed to, and changing emWin views works fine.

One thing I was wondering, is that the GUI_X_ExecIdle is never called, although according to emwin specification GUI_X_ExecIdle  is "Called when there are no longer any messages which require processing. In this case the GUI is up to date."

Does anyone have ideas on this issue? Should FreeRTOS and emWin work together in i.MX RT1064?

标签 (1)
0 项奖励
回复
1 解答
1,461 次查看
Gamka
Contributor III

Hi!
 I was able to solve this issue, it was due to too small stack size.

Br, Gamka

在原帖中查看解决方案

2 回复数
1,462 次查看
Gamka
Contributor III

Hi!
 I was able to solve this issue, it was due to too small stack size.

Br, Gamka

1,469 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Gamka:

Normally in a multiple tasks environment, the real time critical tasks will have the highest priorities. and the tasks which used for the user interface calling emWin functions, these tasks typically have low priorities in the system.

I would suggest you adjust the priorities of your system first.

 

Regards

Daniel

0 项奖励
回复