<?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: FreeRTOS Processor Expert bug with static memory allocation in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821925#M609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ovidiu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great! Thank you for your assistance.&amp;nbsp;:smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tibor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2019 10:27:52 GMT</pubDate>
    <dc:creator>tibor_bekesi</dc:creator>
    <dc:date>2019-08-21T10:27:52Z</dc:date>
    <item>
      <title>FreeRTOS Processor Expert bug with static memory allocation</title>
      <link>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821920#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear NXP,&lt;/P&gt;&lt;P&gt;I created a new FREERTOS project from example for S32K144 in the SDK version 2.9.0:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68803i6888574555E985E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The example compiles and runs fine, however I would like to use static memory allocation, therefore I change this setting in the Processor Expert:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68849iF3E98E489AE1E5E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This way a few new lines are added to the generated FreeRTOSConfig.h:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68888i8794B3D2942B5CD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I try to compile the code, the following error occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68937iD33936625274E2D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a workaround for this (adding these few lines into the generated FreeRTOSConfig.h), which works, but it is not nice and gives warning messages while compiling:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69014i6565A2BF6CF7354E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way the code is working and it compiles. Is there a better solution for overcome this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 05:26:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821920#M604</guid>
      <dc:creator>tamaslorincz</dc:creator>
      <dc:date>2018-09-14T05:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS Processor Expert bug with static memory allocation</title>
      <link>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821921#M605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/tamaslorincz"&gt;tamaslorincz&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is indeed a defect in the Processor Expert component for FreeRTOS, which will be fixed for future releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, please use the following workaround for your project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Check only the "Dynamic allocation" scheme Processor Expert component, and override with the "User Settings" option.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the FreeRTOS PEx component, check only the "Dynamic memory allocation" checkbox:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69176i56F48E8DA57A28CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in "User Settings" tab, click on the "Definitions" button (with three dots):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69198i02FBD3A3C68F6FAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the window, add these lines:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* Additional settings can be defined in the property Settings &amp;gt; User settings &amp;gt; Definitions of the FreeRTOS component */&lt;BR /&gt;#undef configSUPPORT_DYNAMIC_ALLOCATION&lt;BR /&gt;#undef configSUPPORT_STATIC_ALLOCATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define configSUPPORT_DYNAMIC_ALLOCATION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;#define configSUPPORT_STATIC_ALLOCATION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69249iD015B25912DAD0B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the static allocation will be used and dynamic allocation will be disabled. There is one more step to be done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Exclude "heap_&lt;EM&gt;x&lt;/EM&gt;.c" file from build&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Pex component will still link a heap_&lt;EM&gt;x&lt;/EM&gt;.c file to the project at this point. You will need to exclude it by selecting it, right click -&amp;gt; Resource Configurations -&amp;gt; "Exclude from Build..." and select all options.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69289i9BD451F7AA78E085/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After this, the file should appear slightly greyed out and with a different icon, as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69344i465BB728D74BB086/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point, the setup is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will need to use dynamic memory allocation as well, you will need to revert step 2 and remove the lines concerning configSUPPORT_DYNAMIC_ALLOCATION from the "User Settings" window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ovidiu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:56:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821921#M605</guid>
      <dc:creator>ovidiualexandru</dc:creator>
      <dc:date>2018-09-18T11:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS Processor Expert bug with static memory allocation</title>
      <link>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821922#M606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, it is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:04:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821922#M606</guid>
      <dc:creator>tamaslorincz</dc:creator>
      <dc:date>2018-09-18T12:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS Processor Expert bug with static memory allocation</title>
      <link>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821923#M607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please check and confirm whether this bug&amp;nbsp;is&amp;nbsp;&lt;STRONG&gt;already fixed&lt;/STRONG&gt; in &lt;STRONG&gt;S32 Design Studio for Arm version 2018.R1?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tibor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 12:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821923#M607</guid>
      <dc:creator>tibor_bekesi</dc:creator>
      <dc:date>2019-08-02T12:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS Processor Expert bug with static memory allocation</title>
      <link>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821924#M608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/tibor.bekesi@valeo.com"&gt;tibor.bekesi@valeo.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for long delay. I can confirm the issue is fixed since S32 SDK S32K1xx RTM 3.0.0, which is included in Update 9 for S32 Design Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ovidiu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 10:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821924#M608</guid>
      <dc:creator>ovidiualexandru</dc:creator>
      <dc:date>2019-08-21T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS Processor Expert bug with static memory allocation</title>
      <link>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821925#M609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ovidiu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great! Thank you for your assistance.&amp;nbsp;:smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tibor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 10:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/FreeRTOS-Processor-Expert-bug-with-static-memory-allocation/m-p/821925#M609</guid>
      <dc:creator>tibor_bekesi</dc:creator>
      <dc:date>2019-08-21T10:27:52Z</dc:date>
    </item>
  </channel>
</rss>

