Memory allocation issue in MQX.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Memory allocation issue in MQX.

ソリューションへジャンプ
709件の閲覧回数
rpneeraj
Contributor II

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

0 件の賞賛
1 解決策
416件の閲覧回数
rpneeraj
Contributor II

Hi Radek,

Thanks for your reply, I found the issue, it was due to the application.

Thanks,

NS

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
416件の閲覧回数
RadekS
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

417件の閲覧回数
rpneeraj
Contributor II

Hi Radek,

Thanks for your reply, I found the issue, it was due to the application.

Thanks,

NS

0 件の賞賛
416件の閲覧回数
RadekS
NXP Employee
NXP Employee

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

0 件の賞賛