<?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 retrieve global and static variables size in CW 10.5?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311015#M13375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the matter is that i 'm not able to generate any map file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No result if i&amp;nbsp; search for it in the project folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i generate it?&lt;/P&gt;&lt;P&gt;Or should i look for other extensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 15:01:52 GMT</pubDate>
    <dc:creator>diegocolombo</dc:creator>
    <dc:date>2014-04-04T15:01:52Z</dc:date>
    <item>
      <title>How to retrieve global and static variables size in CW 10.5?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311013#M13373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to everybody here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;Say that, somewhere ,i erroneously declared an array with [1000] elements instead of[100] as needed,is it possible to put it in evidence in some ordered list?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;I enabled the print options in the Project-&amp;gt;Properties-&amp;gt;Settings-&amp;gt;Additional tools&amp;nbsp; but i'm only able to finde the total sizes in the console&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mytest.elf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp; hex filename&lt;/P&gt;&lt;P&gt;&amp;nbsp; 13604&amp;nbsp;&amp;nbsp; 3136&amp;nbsp;&amp;nbsp; 1596&amp;nbsp; 18336&amp;nbsp;&amp;nbsp; 47a0 Mytest.elf&lt;/P&gt;&lt;P&gt;&amp;nbsp; 13604&amp;nbsp;&amp;nbsp; 3136&amp;nbsp;&amp;nbsp; 1596&amp;nbsp; 18336&amp;nbsp;&amp;nbsp; 47a0 (TOTALS)&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS &lt;/P&gt;&lt;P&gt;I've also posted it here&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/#comment-20562" title="http://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/#comment-20562"&gt;Code Size Information with gcc for ARM/Kinetis | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 12:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311013#M13373</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2014-04-04T12:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve global and static variables size in CW 10.5?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311014#M13374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diego:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as Erich suggested, you will find that info in the map file. Here an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static uint8 my_buff[100];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the map file I find the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43460i20FEB647B43BECB4/image-size/large?v=v2&amp;amp;px=999" title="Map_file.png" alt="Map_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first number is the address in RAM, while the second is the size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 14:39:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311014#M13374</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-04-04T14:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve global and static variables size in CW 10.5?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311015#M13375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the matter is that i 'm not able to generate any map file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No result if i&amp;nbsp; search for it in the project folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i generate it?&lt;/P&gt;&lt;P&gt;Or should i look for other extensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 15:01:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311015#M13375</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2014-04-04T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve global and static variables size in CW 10.5?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311016#M13376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This file should be in the FLASH folder, after you compile your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not in there, go to Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; ARM Ltd Windows GCC C Linker; and check in the linker options whether or not there is a flag and a name to generate the map file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43471i77B751BD59CCD4C9/image-size/large?v=v2&amp;amp;px=999" title="Link_options.png" alt="Link_options.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also in ARM Ltd Windows GCC C Linker -&amp;gt; Miscellaneous, check if you have a map file name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43474i4884DD89696872F2/image-size/large?v=v2&amp;amp;px=999" title="MFile_name.png" alt="MFile_name.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 18:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311016#M13376</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-04-04T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve global and static variables size in CW 10.5?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311017#M13377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge thanks again for your precise indications&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are my options&lt;/P&gt;&lt;P&gt;-T"C:\FRDM_KL25Z WorkSpace\DisplayOnlytest/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:\Freescale\CW MCU v10.5\eclipse\../MCU/ARM_GCC_Support/ewl/lib/armv6-m" -Wl,-Map,DisplayOnlytest.map -Xlinker --print-map -n -specs=ewl_c.specs -Xlinker --undefined=__pformatter_ -Xlinker --defsym=__pformatter=__pformatter_ -Xlinker --undefined=__sformatter -Xlinker --defsym=__sformatter=__sformatter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; ARM Ltd Windows GCC C Linker -&amp;gt;&lt;/SPAN&gt;Miscellaneous everything looks correct,but still the *.map file is not created &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edited my own linker file,so in PE the build option "Generate linker file" is not active.&lt;/P&gt;&lt;P&gt;Could this have to do with the lack of map file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 22:07:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311017#M13377</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2014-04-04T22:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve global and static variables size in CW 10.5?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311018#M13378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;that you are using your own linker file should not prevent the .map file generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I see that you have the --print-map option enabled. With this, the map file is printed to the console view, and not as file. To have it as file, unselect this option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43502i8D385293225F8E51/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then everything should be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 04:40:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311018#M13378</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-04-05T04:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve global and static variables size in CW 10.5?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311019#M13379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Erich and Jorge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes ,unselecting the Print Link Map option everything works fine,i have the .map file now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good week and thanks to everybody just for reading this discussion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 20:10:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-retrieve-global-and-static-variables-size-in-CW-10-5/m-p/311019#M13379</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2014-04-06T20:10:40Z</dc:date>
    </item>
  </channel>
</rss>

