I am facing issue, in which application need to allocate memory block of around 250 bytes again and again,same block is getting freed also but after a run of 1 day application is getting reset with alloc return value of MQX_OUT_OF_MEMORY.
I am not sure what is causing the issue.
Below is the log for tad command which tells about the memory.
0x1fffe7a0 0x7e0 2016 0x1000d Unknown mem type 0x25
0x1fffef80 0x20 32 System INTERRUPT_VECTOR
0x1fffefa0 0x1054 4180 Free
0x1ffffff4 0x10 16 System Unknown mem type 0x0
0x20000004 0x1130 4400 0x1000b TCP_TX_WINDOW
0x20001134 0x1130 4400 0x1000b TCP_RX_WINDOW
0x20002264 0xdd8c 56716 Free.
Do revert with your suggestions on this.
Thanks,
Neeraj Srivastava
Solved! Go to Solution.
Hi Radek,
Thanks for your reply, I found the issue, it was due to the application.
Thanks,
NS
Yes, it looks like some memory leak. Unfortunately it is hard to say what could be reason for that behavior.
Could you please provide more information about this case?
We would like to know used MCU/board, version of MQX, tool chain (IDE), memory allocator (I suppose LWMEM) and part of code or descriptions what your application do.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Radek,
Thanks for your reply, I found the issue, it was due to the application.
Thanks,
NS
Hi Neeraj,
Thank you for your information.
I am glad that it works now.
Could you please share here what was root cause? – just for case when we detect similar issue.
Best Regards,
RadekS