<?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 Re: MQX_OUT_OF_MEMORY Error at _event_open_fast in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194930#M4018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for the help,&lt;/P&gt;&lt;P&gt;I found out in the MQX Memory Pool - Box that my RAM gets filled with a lot of Event connections Objects.&lt;/P&gt;&lt;P&gt;My ISR looked like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void I2C_Sensor_OnMasterBlockReceived(LDD_TUserData *UserDataPtr)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pointer i2c_isr_event_ptr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_event_open_fast(1, &amp;amp;i2c_isr_event_ptr);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_event_set(i2c_isr_event_ptr, 0x02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So every time i get an Interrupt I opened a new event connection.&lt;/P&gt;&lt;P&gt;So i know what the problem is, but the _event_close funktion is not allowed to be called from an ISR.&lt;/P&gt;&lt;P&gt;I tried to make the event handler a public variable and open it only at the init of my task, that worked, but i think there must be a better way than a global variable....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 18:39:32 GMT</pubDate>
    <dc:creator>hard_ware</dc:creator>
    <dc:date>2012-01-09T18:39:32Z</dc:date>
    <item>
      <title>MQX_OUT_OF_MEMORY Error at _event_open_fast</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194927#M4015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm useing CW 10.1 and MQX 3.7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Use an fast auto clear event to syncronize between an ISR and a Task that is called every 250ms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is working fine for the first 50 seconds, after that time, every time i call&lt;/P&gt;&lt;P&gt;err = _event_open_fast(1, &amp;amp;i2c_event_ptr);&lt;/P&gt;&lt;P&gt;I get MQX_OUT_OF_MEMORY.&lt;/P&gt;&lt;P&gt;I am not useing any dynamic memory in my task and my task stack is at 6%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas where to look for the reason of the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 23:02:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194927#M4015</guid>
      <dc:creator>hard_ware</dc:creator>
      <dc:date>2012-01-05T23:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_OUT_OF_MEMORY Error at _event_open_fast</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194928#M4016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might not be using memory, but an MQX driver might be trying to allocate some memory.&lt;/P&gt;&lt;P&gt;If your task stack usage is at 6% likely it should be shrunk, since it would seem (based on the limited info I have)that it is way to big. ( My stacks are around 50% utilization)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also check the MQX-&amp;gt;Lightweight Memory Blocks and see what your total RAM usage is, it is listed at the bottom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 02:23:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194928#M4016</guid>
      <dc:creator>timias</dc:creator>
      <dc:date>2012-01-06T02:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_OUT_OF_MEMORY Error at _event_open_fast</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194929#M4017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Open the intflash.lcf and increase the interrupt stack size:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; __DEFAULT_INTERRUPT_STACK_SIZE = 1024;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is located in the FSLMQX\lib\twrk60n512.cw10\bsp folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 23:14:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194929#M4017</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-01-06T23:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_OUT_OF_MEMORY Error at _event_open_fast</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194930#M4018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for the help,&lt;/P&gt;&lt;P&gt;I found out in the MQX Memory Pool - Box that my RAM gets filled with a lot of Event connections Objects.&lt;/P&gt;&lt;P&gt;My ISR looked like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void I2C_Sensor_OnMasterBlockReceived(LDD_TUserData *UserDataPtr)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pointer i2c_isr_event_ptr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_event_open_fast(1, &amp;amp;i2c_isr_event_ptr);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_event_set(i2c_isr_event_ptr, 0x02);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So every time i get an Interrupt I opened a new event connection.&lt;/P&gt;&lt;P&gt;So i know what the problem is, but the _event_close funktion is not allowed to be called from an ISR.&lt;/P&gt;&lt;P&gt;I tried to make the event handler a public variable and open it only at the init of my task, that worked, but i think there must be a better way than a global variable....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 18:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-OUT-OF-MEMORY-Error-at-event-open-fast/m-p/194930#M4018</guid>
      <dc:creator>hard_ware</dc:creator>
      <dc:date>2012-01-09T18:39:32Z</dc:date>
    </item>
  </channel>
</rss>

