mem_extend function not work in MQX 4.2

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

mem_extend function not work in MQX 4.2

跳至解决方案
748 次查看
davidzhu
Contributor III

Hi

I am a MQX user, I am using K66 and MQX 4.2.   I need to extend my external SDRAM to MQX pool with mem_extend, but  it is not successful,. Could you please give me a clue how to this correctly?

 

Thank you.

0 项奖励
1 解答
732 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi David:

 

If your application runs out of RAM and you want to create new tasks you need external RAM. In this case _mem_extend function is used to let the kernel know about external mem pool.

 you need to use these MACROs in user_config.h

 #define MQX_USE_LWMEM_ALLOCATOR 0
 #define MQX_USE_LWMEM 0
 #define MQX_USE_MEM 1

Please rebuild all libraries.

 

Regards

Daniel

 

在原帖中查看解决方案

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

Hi David:

 

If your application runs out of RAM and you want to create new tasks you need external RAM. In this case _mem_extend function is used to let the kernel know about external mem pool.

 you need to use these MACROs in user_config.h

 #define MQX_USE_LWMEM_ALLOCATOR 0
 #define MQX_USE_LWMEM 0
 #define MQX_USE_MEM 1

Please rebuild all libraries.

 

Regards

Daniel

 

0 项奖励