<?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: How to set Stack size for MK20DX128 in eclipse?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207016#M3263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it using ProcessorExpert "CPU" component.&amp;nbsp; See attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 19:42:45 GMT</pubDate>
    <dc:creator>Pixo</dc:creator>
    <dc:date>2013-01-23T19:42:45Z</dc:date>
    <item>
      <title>How to set Stack size for MK20DX128 in eclipse?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207013#M3260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing an application on MK20DX128 using Eclipse and there seems to be a problem in the stack size. I want to set the stack size myself but I can't seem to find a way for that. I tried to overwrite the linker file but it didn't lead me to anything&amp;nbsp; I searched in the settings to check any options related to stack size but i couldn't find anything. Does anyone know where I can specify the stack size?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207013#M3260</guid>
      <dc:creator>dinaelsissy</dc:creator>
      <dc:date>2012-12-13T13:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Stack size for MK20DX128 in eclipse?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207014#M3261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dina,&lt;/P&gt;&lt;P&gt;Are you asking how to change the task stack size?&lt;/P&gt;&lt;P&gt;If yes, task stack size is defined in the MQX_template_list[].&lt;/P&gt;&lt;P&gt;const TASK_TEMPLATE_STRUCT&amp;nbsp; MQX_template_list[] =&lt;/P&gt;&lt;P&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Task Index,&amp;nbsp;&amp;nbsp; Function,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stack,&amp;nbsp; Priority,&amp;nbsp;&amp;nbsp; Name,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Attributes,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Param, Time Slice */&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; flash_task,&amp;nbsp;&amp;nbsp; 2000,&amp;nbsp;&amp;nbsp; 7,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "flash_test",&amp;nbsp;&amp;nbsp; MQX_AUTO_START_TASK, 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 },&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp; flashnvm_task,3000,&amp;nbsp;&amp;nbsp; 8,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "flash_nvm",&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX_AUTO_START_TASK, 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 },&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;{ 0 } };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The linker file is only defining the default interrupt stack size.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 22:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207014#M3261</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-12-13T22:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Stack size for MK20DX128 in eclipse?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207015#M3262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The linker file is only defining the default interrupt stack size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;That is not really correct. Setting the stack size in the linker really just tells the linker not to include that amount of memory when allocating RAM elsewhere, and the generated startup code will set the stack pointer to that address .&amp;nbsp; "main" will use this stack, as will interrupt handlers, but really "nobody" knows how big the stack is while running (until you crash it :-).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;MQX stack size is something completely different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;What exactly did you change in the lcf file, and what did you expect to see happen that you did not see happen?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;__SP_INIT = . + 0x00008000; // Increase the size here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 23:03:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207015#M3262</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2012-12-13T23:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Stack size for MK20DX128 in eclipse?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207016#M3263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it using ProcessorExpert "CPU" component.&amp;nbsp; See attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 19:42:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Stack-size-for-MK20DX128-in-eclipse/m-p/207016#M3263</guid>
      <dc:creator>Pixo</dc:creator>
      <dc:date>2013-01-23T19:42:45Z</dc:date>
    </item>
  </channel>
</rss>

