mem_extend function not work in MQX 4.2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mem_extend function not work in MQX 4.2

Jump to solution
716 Views
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 Kudos
1 Solution
700 Views
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

 

View solution in original post

0 Kudos
1 Reply
701 Views
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 Kudos