MQX4.1 Task Error: _mqx_init_task out of memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX4.1 Task Error: _mqx_init_task out of memory

Jump to solution
677 Views
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 Kudos
1 Solution
441 Views
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

View solution in original post

0 Kudos
2 Replies
442 Views
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 Kudos
441 Views
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