<?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 RTCS_create() returns &amp;quot;RTCSERR_CREATE_POOL_FAILED&amp;quot; in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-returns-quot-RTCSERR-CREATE-POOL-FAILED-quot/m-p/206046#M4853</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;When I am trying to use RTCS_create(), I am receiving "RTCSERR_CREATE_POOL_FAILED". I understand that it is somehow related to lack of message pool memory, but I don't know how to configure RTCS to overcome this porblem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried playing with the following values, and even with the following high values - the error persists:&lt;/P&gt;&lt;P&gt;_RTCS_msgpool_init&amp;nbsp;&amp;nbsp; = 300;&amp;nbsp;&amp;nbsp; //default = 32&lt;/P&gt;&lt;P&gt;_RTCS_msgpool_grow = 100;&amp;nbsp; //default = 16&lt;/P&gt;&lt;P&gt;_RTCS_msgpool_max&amp;nbsp; = 400;&amp;nbsp; //default = 160&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My system has 2 message pools I've explicitly created by using _msgpool_create():&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The first pool&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;message_size = 9 bytes&lt;/P&gt;&lt;P&gt;num_messages = 10&lt;/P&gt;&lt;P&gt;grow_number = 0&lt;/P&gt;&lt;P&gt;grow_limit = 0 (unlimited)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The second pool&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;message_size = 13 bytes&lt;/P&gt;&lt;P&gt;num_messages = 10&lt;/P&gt;&lt;P&gt;grow_number = 0&lt;/P&gt;&lt;P&gt;grow_limit = 0 (unlimited)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2012 14:23:03 GMT</pubDate>
    <dc:creator>panpwr</dc:creator>
    <dc:date>2012-12-12T14:23:03Z</dc:date>
    <item>
      <title>RTCS_create() returns "RTCSERR_CREATE_POOL_FAILED"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-returns-quot-RTCSERR-CREATE-POOL-FAILED-quot/m-p/206046#M4853</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;When I am trying to use RTCS_create(), I am receiving "RTCSERR_CREATE_POOL_FAILED". I understand that it is somehow related to lack of message pool memory, but I don't know how to configure RTCS to overcome this porblem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried playing with the following values, and even with the following high values - the error persists:&lt;/P&gt;&lt;P&gt;_RTCS_msgpool_init&amp;nbsp;&amp;nbsp; = 300;&amp;nbsp;&amp;nbsp; //default = 32&lt;/P&gt;&lt;P&gt;_RTCS_msgpool_grow = 100;&amp;nbsp; //default = 16&lt;/P&gt;&lt;P&gt;_RTCS_msgpool_max&amp;nbsp; = 400;&amp;nbsp; //default = 160&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My system has 2 message pools I've explicitly created by using _msgpool_create():&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The first pool&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;message_size = 9 bytes&lt;/P&gt;&lt;P&gt;num_messages = 10&lt;/P&gt;&lt;P&gt;grow_number = 0&lt;/P&gt;&lt;P&gt;grow_limit = 0 (unlimited)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The second pool&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;message_size = 13 bytes&lt;/P&gt;&lt;P&gt;num_messages = 10&lt;/P&gt;&lt;P&gt;grow_number = 0&lt;/P&gt;&lt;P&gt;grow_limit = 0 (unlimited)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 14:23:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-returns-quot-RTCSERR-CREATE-POOL-FAILED-quot/m-p/206046#M4853</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2012-12-12T14:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS_create() returns "RTCSERR_CREATE_POOL_FAILED"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-returns-quot-RTCSERR-CREATE-POOL-FAILED-quot/m-p/206047#M4854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the problem:&lt;/P&gt;&lt;P&gt;I've replaced the order of the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;calls so RTCS_Create will be first, and afterwards the 2 calls for &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;_msgpool_create():&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The RTCS_Create passed correctly, and so was the 1st &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;_msgpool_create()&lt;/SPAN&gt;. However, the 2nd &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;_msgpool_create()&lt;/SPAN&gt; call returned &lt;STRONG&gt;MSGPOOL_OUT_OF_POOLS&lt;/STRONG&gt; error. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Looking at the MQX Reference manual I've realized that &lt;STRONG&gt;MAX_MSGPOOLS&lt;/STRONG&gt; in the MQX initialization structure should be increased (and not the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;_RTCS_msgpool&lt;/SPAN&gt;_* variables as I initially thought). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Therefore, I've updated the &lt;STRONG&gt;BSP_DEFAULT_MAX_MSGPOOLS &lt;/STRONG&gt;value from &lt;STRONG&gt;mqx\source\bsp\&amp;lt;board_name&amp;gt;\&amp;lt;board_name&amp;gt;.&lt;/STRONG&gt;, recompiled BSP and PSP libraries - and it all went well.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 09:30:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-returns-quot-RTCSERR-CREATE-POOL-FAILED-quot/m-p/206047#M4854</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2012-12-13T09:30:46Z</dc:date>
    </item>
  </channel>
</rss>

