<?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 PE-MQX memory Heap(where is it hidden?) in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/PE-MQX-memory-Heap-where-is-it-hidden/m-p/162582#M195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I started a new PE-MQX project. I have many matrixes to allocate in heap.&lt;/P&gt;&lt;P&gt;When I increase the number of the matrixes it&amp;nbsp;hangs. I suppose it&amp;nbsp;is because&lt;/P&gt;&lt;P&gt;default heap is smaller than that I need. But where is hidden heap memory&lt;/P&gt;&lt;P&gt;and which is the default size?&amp;nbsp; It seems that in MQX component a user&lt;/P&gt;&lt;P&gt;function must be created to be "suitable for usage by RTOS component" as it is&lt;/P&gt;&lt;P&gt;written in the help file. What exactly it means&amp;nbsp;"suitable" and how this function&lt;/P&gt;&lt;P&gt;is written? &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Using mem_alloc_system or something else? And where should I&lt;/P&gt;&lt;P&gt;place this function?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Aug 2011 23:48:29 GMT</pubDate>
    <dc:creator>georgiad</dc:creator>
    <dc:date>2011-08-28T23:48:29Z</dc:date>
    <item>
      <title>PE-MQX memory Heap(where is it hidden?)</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/PE-MQX-memory-Heap-where-is-it-hidden/m-p/162582#M195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I started a new PE-MQX project. I have many matrixes to allocate in heap.&lt;/P&gt;&lt;P&gt;When I increase the number of the matrixes it&amp;nbsp;hangs. I suppose it&amp;nbsp;is because&lt;/P&gt;&lt;P&gt;default heap is smaller than that I need. But where is hidden heap memory&lt;/P&gt;&lt;P&gt;and which is the default size?&amp;nbsp; It seems that in MQX component a user&lt;/P&gt;&lt;P&gt;function must be created to be "suitable for usage by RTOS component" as it is&lt;/P&gt;&lt;P&gt;written in the help file. What exactly it means&amp;nbsp;"suitable" and how this function&lt;/P&gt;&lt;P&gt;is written? &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Using mem_alloc_system or something else? And where should I&lt;/P&gt;&lt;P&gt;place this function?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2011 23:48:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/PE-MQX-memory-Heap-where-is-it-hidden/m-p/162582#M195</guid>
      <dc:creator>georgiad</dc:creator>
      <dc:date>2011-08-28T23:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: PE-MQX memory Heap(where is it hidden?)</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/PE-MQX-memory-Heap-where-is-it-hidden/m-p/162583#M196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case of integration PEx with MQX, the heap allocation is not a part of Processor Expert generated code. Heap size is usually allocated in the linker command file which is a part of your application (not a part of BSP). MQX RTOS component allows you to choose between standard MQX memory allocation functions or user defined. When you choose “user defined” then you need to specified a function name with the same prototype like the original one in MQX. Definition of your function can be anywhere in .c module in your application.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 18:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/PE-MQX-memory-Heap-where-is-it-hidden/m-p/162583#M196</guid>
      <dc:creator>marek_vinkler</dc:creator>
      <dc:date>2011-09-02T18:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: PE-MQX memory Heap(where is it hidden?)</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/PE-MQX-memory-Heap-where-is-it-hidden/m-p/162584#M197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please point me to the place where the heap&amp;nbsp;can be physically set ? I am working on a Twr-K60N512.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming that the Stack is set at the point where the task template&amp;nbsp;is initialized. Also is the stack/heap implementation a common overlapping memory which grow outwards ? I need a further 30kb (beyond whatever default heap is available) of heap memory for my application (it crashes now due to unavailablility of heap).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of now I allocate memory dynamically using _mem_alloc().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help/pointer would be welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 18:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/PE-MQX-memory-Heap-where-is-it-hidden/m-p/162584#M197</guid>
      <dc:creator>Akshaya_Mukund</dc:creator>
      <dc:date>2012-07-19T18:16:15Z</dc:date>
    </item>
  </channel>
</rss>

