<?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 Software Development Kit中的主题 Re: KV10 with freeRTOS</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-with-freeRTOS/m-p/661340#M7216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Although I do not know the required SRAM size of the freeRtos exactly,&amp;nbsp; pls refer to the line&lt;/P&gt;&lt;P&gt;#define configTOTAL_HEAP_SIZE ((size_t)(10 * 1024)) in FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The heap size is defined as 10K Bytes, that is why there is SRAM size limit error if your physical SRAM has only 8K bytes, if you adjust the above parameter for example, redefine the parameter as:&lt;/P&gt;&lt;P&gt;#define configTOTAL_HEAP_SIZE ((size_t)(4 * 1024))&lt;/P&gt;&lt;P&gt;can you pass the compiling?&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 03:45:01 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2017-02-06T03:45:01Z</dc:date>
    <item>
      <title>KV10 with freeRTOS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-with-freeRTOS/m-p/661339#M7215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the FRDM-KV10Z and I just started a new SDK2.0 project (including all drivers) with FreeRTOS. It comes with an example with a simple task publishing "Hello world" in the serial interface. When I try to build the project I get an error such as:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;file.elf section `.bss' will not fit in region `m_data'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;region m_data overflowed with stack and heap&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;region `m_data' overflowed by 3440 bytes&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been checking and found that this could be an SRAM size issue. The KV10 has 8kB memory so I am afraid the MCU hasn't memory enough to run with FreeRTOS. I found this explanation in this website with another MCU from NXP:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuoneclipse.com%2F2013%2F07%2F10%2Ffreertos-heap-with-segmented-kinetis-k-sram%2F" rel="nofollow" target="_blank"&gt;FreeRTOS Heap with Segmented Kinetis K SRAM | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this case the KV10 doesnt have 2 partitions in the SRAM as far as I saw on the .Id file&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I have also been checking on the FreeRTOS website but they don't look like using that much SRAM.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freertos.org%2FFAQMem.html%23RAMUse" rel="nofollow" target="_blank"&gt;FreeRTOS FAQ relating to FreeRTOS memory management and usage. FreeRTOS is an Open Source RTOS Kernel for small embedde…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question would be if my assumption is right. In case I want to run with FreeRTOS, do I need a MCU with bigger SRAM size? Probably upgrading to KV3?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Borja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 08:10:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-with-freeRTOS/m-p/661339#M7215</guid>
      <dc:creator>borjaserra</dc:creator>
      <dc:date>2017-02-02T08:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: KV10 with freeRTOS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-with-freeRTOS/m-p/661340#M7216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Although I do not know the required SRAM size of the freeRtos exactly,&amp;nbsp; pls refer to the line&lt;/P&gt;&lt;P&gt;#define configTOTAL_HEAP_SIZE ((size_t)(10 * 1024)) in FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The heap size is defined as 10K Bytes, that is why there is SRAM size limit error if your physical SRAM has only 8K bytes, if you adjust the above parameter for example, redefine the parameter as:&lt;/P&gt;&lt;P&gt;#define configTOTAL_HEAP_SIZE ((size_t)(4 * 1024))&lt;/P&gt;&lt;P&gt;can you pass the compiling?&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 03:45:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-with-freeRTOS/m-p/661340#M7216</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-02-06T03:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: KV10 with freeRTOS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-with-freeRTOS/m-p/661341#M7217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I didn't see that definition in the header file before. As you said I changed it and it worked :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 07:46:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-with-freeRTOS/m-p/661341#M7217</guid>
      <dc:creator>borjaserra</dc:creator>
      <dc:date>2017-02-06T07:46:45Z</dc:date>
    </item>
  </channel>
</rss>

