MQX4.1 Task Error: _mqx_init_task out of memory

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

MQX4.1 Task Error: _mqx_init_task out of memory

跳至解决方案
1,227 次查看
huishao2
Contributor IV

Hi-

Just upgraded to MQX4.1 on k20d50m custom board, I run my code within IAR and I-jet. I got the error "out of memory (0x0004)" from from _mqx_init_task during IAR running. Can someone please help on this?

pastedImage_0.png

Thanks

Hui

0 项奖励
回复
1 解答
991 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

K20D50 has low memory resources. Try to reduce the stack size for every task to minimum without overflow. Probably you don't have enough memory to create all the tasks due to their stack size and the RAM available in the K20 50Mhz.

Best Regards,

Luis

在原帖中查看解决方案

0 项奖励
回复
2 回复数
992 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

K20D50 has low memory resources. Try to reduce the stack size for every task to minimum without overflow. Probably you don't have enough memory to create all the tasks due to their stack size and the RAM available in the K20 50Mhz.

Best Regards,

Luis

0 项奖励
回复
991 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

_mqx_init_task is used to create task for given task template.  First you need to check is which task is fail.  You can mark the tasks in your task template and let it run individually.  after that try to debug the failed task.

Have a great day,
Daniel