<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extending the Default Memory Pool via _mem_extend in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Extending-the-Default-Memory-Pool-via-mem-extend/m-p/313935#M10057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;MQX Version:&lt;/STRONG&gt; 4.0&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;CodeWarrior Version:&lt;/STRONG&gt; 10.5&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Processor:&lt;/STRONG&gt; MK70FN1M0VMJ12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to extend the default memory pool for my application which based off the mk70 tower kit originally.&amp;nbsp; The actual call in my application that I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_mqx_uint ret_val = mem_extend((void *)0x71000000,5000000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will cause my application to not work correctly in that I receive unhandled Interrupts later in my application which should have interrupt handlers assigned.&amp;nbsp; If I only extended the memory by 3 MB (i.e. _mem_extend((void *) 0x71000000, 3000000)), everything works as it should and i do not get the unhandled ISRs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this would happen?&amp;nbsp; Any other guidance on documentation, Application Notes, etc. would be appreciated.&amp;nbsp; I am open to any means of increasing the default RAM size.&amp;nbsp; I have tried creating other system memory pools as well, but receive the same type of observation of unhandled Interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 22:28:28 GMT</pubDate>
    <dc:creator>miket</dc:creator>
    <dc:date>2014-06-03T22:28:28Z</dc:date>
    <item>
      <title>Extending the Default Memory Pool via _mem_extend</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Extending-the-Default-Memory-Pool-via-mem-extend/m-p/313935#M10057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;MQX Version:&lt;/STRONG&gt; 4.0&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;CodeWarrior Version:&lt;/STRONG&gt; 10.5&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Processor:&lt;/STRONG&gt; MK70FN1M0VMJ12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to extend the default memory pool for my application which based off the mk70 tower kit originally.&amp;nbsp; The actual call in my application that I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_mqx_uint ret_val = mem_extend((void *)0x71000000,5000000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will cause my application to not work correctly in that I receive unhandled Interrupts later in my application which should have interrupt handlers assigned.&amp;nbsp; If I only extended the memory by 3 MB (i.e. _mem_extend((void *) 0x71000000, 3000000)), everything works as it should and i do not get the unhandled ISRs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this would happen?&amp;nbsp; Any other guidance on documentation, Application Notes, etc. would be appreciated.&amp;nbsp; I am open to any means of increasing the default RAM size.&amp;nbsp; I have tried creating other system memory pools as well, but receive the same type of observation of unhandled Interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 22:28:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Extending-the-Default-Memory-Pool-via-mem-extend/m-p/313935#M10057</guid>
      <dc:creator>miket</dc:creator>
      <dc:date>2014-06-03T22:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Default Memory Pool via _mem_extend</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Extending-the-Default-Memory-Pool-via-mem-extend/m-p/313936#M10058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Please notice _mem_extend() function works as follows:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;- When you create a new task, MQX kernell uses some space in RAM for the internal task stack.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;- If you run out of RAM memory you will not be able to create new tasks.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;- You can use _mem_extend() to tell the MQX kernell that he can use external RAM if internl RM is not enough.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Please find attached the files of the complete example using _mem_extend() function.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In addition please edit the user_config.h in a text editor to add the followig lines:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#define MQX_USE_MEM 1 //Enable to use _mem_extend #define MQX_USE_LWMEM 0&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#define MQX_USE_LWMEM_ALLOCATOR 0&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Then re-build the BSP and PSP&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 23:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Extending-the-Default-Memory-Pool-via-mem-extend/m-p/313936#M10058</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-06-05T23:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Default Memory Pool via _mem_extend</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Extending-the-Default-Memory-Pool-via-mem-extend/m-p/313937#M10059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have answered this thread in another thread I started; all being symptoms of the same issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/325234"&gt;D4D eGUI External Memory Bitmap Images&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 13:17:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Extending-the-Default-Memory-Pool-via-mem-extend/m-p/313937#M10059</guid>
      <dc:creator>miket</dc:creator>
      <dc:date>2014-07-01T13:17:23Z</dc:date>
    </item>
  </channel>
</rss>

