Hi Michael,
Please notice _mem_extend() function works as follows:
- When you create a new task, MQX kernell uses some space in RAM for the internal task stack.
- If you run out of RAM memory you will not be able to create new tasks.
- You can use _mem_extend() to tell the MQX kernell that he can use external RAM if internl RM is not enough.
Please find attached the files of the complete example using _mem_extend() function.
In addition please edit the user_config.h in a text editor to add the followig lines:
#define MQX_USE_MEM 1 //Enable to use _mem_extend #define MQX_USE_LWMEM 0
#define MQX_USE_LWMEM_ALLOCATOR 0
Then re-build the BSP and PSP
I hope this helps,
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------