<?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 Re: Difference between (TOTALS) and .elf. Memory Usage Output in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977801#M10019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's actually a very neat way using $(OBJS), appreciate that sharing and information!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2020 08:22:49 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2020-01-09T08:22:49Z</dc:date>
    <item>
      <title>Difference between (TOTALS) and .elf. Memory Usage Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977798#M10016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Originally I thought that my .elf output for my memory represented the memory usage of my program. However, I found an option for TOTALS in my options menu... Not sure how I found it at this point but it's in there. Now when it debugs it skyrockets the amount for TOTALS as you can see below. I do know that my project is mostly under sample2.elf largely because the bss ram space consumed matched what I developed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this TOTALS has nearly 50kb of unaccounted for Flash (That I'm aware of being used). Anyone know what the issue is with this? I feel good about the 60kb of flash being used in sample2.elf but the 104kb makes the voice inside my head squeal a little.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101760i179948CDB22EEC12/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 20:33:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977798#M10016</guid>
      <dc:creator>codyhubman</dc:creator>
      <dc:date>2020-01-07T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (TOTALS) and .elf. Memory Usage Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977799#M10017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cody,&lt;/P&gt;&lt;P&gt;where did you find that option? And that last line with the .metadata seems wrong anyway (you won't link that file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GNU size tool (this is what is used in KDS) can be used to show the size for each file, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/07/13/listing-code-and-data-size-for-each-source-file-with-gnu-and-eclipse/" title="https://mcuoneclipse.com/2014/07/13/listing-code-and-data-size-for-each-source-file-with-gnu-and-eclipse/"&gt;Listing Code and Data Size for each Source File with GNU and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But keep in mind that this will list the size of each file before it is linked, means the maximum size if you would use every function and every variable/object. The real size is less because the linker will remove any unused function/object variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a Kinetis device, I recommend you use the MCUXpresso IDE (&lt;A class="link-titled" href="https://mcuoneclipse.com/2020/01/05/mcuxpresso-ide-v11-1-0/" title="https://mcuoneclipse.com/2020/01/05/mcuxpresso-ide-v11-1-0/"&gt;MCUXpresso IDE V11.1.0 | MCU on Eclipse&lt;/A&gt; ) as it has a nice Image Info plugin which shows you the real size used in the binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 07:42:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977799#M10017</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-01-08T07:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (TOTALS) and .elf. Memory Usage Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977800#M10018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I went through and found the option. Ill check out your article. We have MCU installed but I haven't played with it enough to get it working with my current project but I think I know why I was unable to get it working before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's where I found the option.&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101851i64A49DC9C4E2D7BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 15:28:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977800#M10018</guid>
      <dc:creator>codyhubman</dc:creator>
      <dc:date>2020-01-08T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (TOTALS) and .elf. Memory Usage Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977801#M10019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's actually a very neat way using $(OBJS), appreciate that sharing and information!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 08:22:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977801#M10019</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-01-09T08:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (TOTALS) and .elf. Memory Usage Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977802#M10020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, So I can see the total amount for each output file but I am at a loss for whatever TOTALS is talking about&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 20:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977802#M10020</guid>
      <dc:creator>codyhubman</dc:creator>
      <dc:date>2020-01-09T20:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (TOTALS) and .elf. Memory Usage Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977803#M10021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to me the TOTALS (--totals option) is just summing up all the values in the list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 20:22:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977803#M10021</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-01-09T20:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between (TOTALS) and .elf. Memory Usage Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977804#M10022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ok, I was confused because in the past I didn't have Totals selected so I thought the sample.elf line was the "total" for my project and it seemed to be the amount of all the previous output files summed up together. So I was confused when I selected the totals option and it practically doubled the memory that said was being used.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 20:43:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difference-between-TOTALS-and-elf-Memory-Usage-Output/m-p/977804#M10022</guid>
      <dc:creator>codyhubman</dc:creator>
      <dc:date>2020-01-09T20:43:44Z</dc:date>
    </item>
  </channel>
</rss>

