<?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 Stack Size, FRDM-KL46Z IAR? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Stack-Size-FRDM-KL46Z-IAR/m-p/320718#M14368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be some sort of paradox, that I am not able to configure the correct Stack Size for FRDM-KL46Z for IAR compiler.&lt;/P&gt;&lt;P&gt;I am using the FRDM-Demo example provided from freescale for IAR compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I go to project linker settings, and modified CSTACK to 33*1024 (Enormous)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42573iCBF29FD6E36E3EA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG.png" alt="1.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I RE Build the program, surprisingly it build Successful - OK.&lt;/P&gt;&lt;P&gt;I checked the 256_pflash.icf linker file, shows cstack = 33*1024.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42654i651B80DA518EBE77/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG.png" alt="4.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I go to map file of the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42753i0EFD0985EE515C35/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG.png" alt="3.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. Why is map file not showing the Stack Size value, in the Highlighted Linker created area?&lt;/P&gt;&lt;P&gt;2. How was IAR abled to Build, by configure 33*1024 Bytes of Stack size, while total RAM of FRDM-KL46Z is 32 KB only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, explain anyone what is happening, actually I want to increase the stack size, but now I am not sure if I am using the right linker files or not.&lt;/P&gt;&lt;P&gt;And, I am doing this because I am facing a HardFault error. This is why I was trying to increase stack size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 05:45:47 GMT</pubDate>
    <dc:creator>ishmeets</dc:creator>
    <dc:date>2014-06-18T05:45:47Z</dc:date>
    <item>
      <title>Stack Size, FRDM-KL46Z IAR?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Stack-Size-FRDM-KL46Z-IAR/m-p/320718#M14368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be some sort of paradox, that I am not able to configure the correct Stack Size for FRDM-KL46Z for IAR compiler.&lt;/P&gt;&lt;P&gt;I am using the FRDM-Demo example provided from freescale for IAR compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I go to project linker settings, and modified CSTACK to 33*1024 (Enormous)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42573iCBF29FD6E36E3EA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG.png" alt="1.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I RE Build the program, surprisingly it build Successful - OK.&lt;/P&gt;&lt;P&gt;I checked the 256_pflash.icf linker file, shows cstack = 33*1024.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42654i651B80DA518EBE77/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG.png" alt="4.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I go to map file of the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42753i0EFD0985EE515C35/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG.png" alt="3.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. Why is map file not showing the Stack Size value, in the Highlighted Linker created area?&lt;/P&gt;&lt;P&gt;2. How was IAR abled to Build, by configure 33*1024 Bytes of Stack size, while total RAM of FRDM-KL46Z is 32 KB only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, explain anyone what is happening, actually I want to increase the stack size, but now I am not sure if I am using the right linker files or not.&lt;/P&gt;&lt;P&gt;And, I am doing this because I am facing a HardFault error. This is why I was trying to increase stack size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 05:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Stack-Size-FRDM-KL46Z-IAR/m-p/320718#M14368</guid>
      <dc:creator>ishmeets</dc:creator>
      <dc:date>2014-06-18T05:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Size, FRDM-KL46Z IAR?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Stack-Size-FRDM-KL46Z-IAR/m-p/320719#M14369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ishmeet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever tried to this with CodeWarrior? as long as I know this problem does not happens with Freescale Tools.&lt;/P&gt;&lt;P&gt;Also, in this case may be you can enter a &lt;A href="http://supp.iar.com/Support/Request/"&gt;&lt;STRONG&gt;service request&lt;/STRONG&gt; &lt;/A&gt;with IAR, because this seems to be a compiler issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 21:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Stack-Size-FRDM-KL46Z-IAR/m-p/320719#M14369</guid>
      <dc:creator>perlam_i_au</dc:creator>
      <dc:date>2014-06-18T21:44:05Z</dc:date>
    </item>
  </channel>
</rss>

