<?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>Kinetis Microcontrollers中的主题 Re: FreeRTOS allocation problem</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783902#M47728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just a comment:&lt;/P&gt;&lt;P&gt;xTaskCreate((TaskFunction_t)operation_task, (signed char*) "tx", 1024, NULL, 1, NULL);&lt;/P&gt;&lt;P&gt;this means you actually are requesting 4KB (4*1024 bytes) of stack space.&lt;/P&gt;&lt;P&gt;This of course depends on your application, but is rather high, and you maybe only wanted to reserve 1024 bytes of stack?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2018 14:56:49 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2018-07-25T14:56:49Z</dc:date>
    <item>
      <title>FreeRTOS allocation problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783899#M47725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use MK10FN1M0xxx12.&lt;/P&gt;&lt;P&gt;I create two tasks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRTOS1_xTaskCreate((TaskFunction_t)operation_task, (signed char*) "tx", 1024, NULL, 1, NULL); FRTOS1_xTaskCreate((TaskFunction_t)log_managment_task, (signed char*) "rx", 512, NULL, 1, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It runs OK.&lt;/P&gt;&lt;P&gt;But if I increase the stack size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRTOS1_xTaskCreate((TaskFunction_t)operation_task, (signed char*) "tx", 1024, NULL, 1, NULL); FRTOS1_xTaskCreate((TaskFunction_t)log_managment_task, (signed char*) "rx", 1024, NULL, 1, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fall into FRTOS1_vApplicationMallocFailedHook&lt;/P&gt;&lt;P&gt;And I have&amp;nbsp; #define configTOTAL_HEAP_SIZE (24576) /* size of heap in bytes */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fix the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:14:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783899#M47725</guid>
      <dc:creator>john71</dc:creator>
      <dc:date>2018-07-25T12:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS allocation problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783900#M47726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. Found the problem. Should increase&amp;nbsp; heap size #define configTOTAL_HEAP_SIZE (32768)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:42:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783900#M47726</guid>
      <dc:creator>john71</dc:creator>
      <dc:date>2018-07-25T12:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS allocation problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783901#M47727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783901#M47727</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-07-25T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS allocation problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783902#M47728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just a comment:&lt;/P&gt;&lt;P&gt;xTaskCreate((TaskFunction_t)operation_task, (signed char*) "tx", 1024, NULL, 1, NULL);&lt;/P&gt;&lt;P&gt;this means you actually are requesting 4KB (4*1024 bytes) of stack space.&lt;/P&gt;&lt;P&gt;This of course depends on your application, but is rather high, and you maybe only wanted to reserve 1024 bytes of stack?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:56:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783902#M47728</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-07-25T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS allocation problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783903#M47729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 16:02:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-allocation-problem/m-p/783903#M47729</guid>
      <dc:creator>john71</dc:creator>
      <dc:date>2018-07-30T16:02:19Z</dc:date>
    </item>
  </channel>
</rss>

