mem_extend function not work in MQX 4.2

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

mem_extend function not work in MQX 4.2

ソリューションへジャンプ
892件の閲覧回数
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 解決策
876件の閲覧回数
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 返信
877件の閲覧回数
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 件の賞賛
返信