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?
Thanks
Hui
Solved! Go to Solution.
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
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
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