<?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: How can I find out the size of my program and how much program space if left on a K60? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703190#M43194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Barry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ELF file contains lots of data (eg. symbol information of debugging) and so has nothing to do with the size of the binary that is loaded (eve small code of a few kBytes may have an ELF of 1 Mega Byte in size).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configure to generate a .bin output and then you have the the exact size accurate to a byte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2017 22:46:22 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2017-09-14T22:46:22Z</dc:date>
    <item>
      <title>How can I find out the size of my program and how much program space if left on a K60?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703185#M43189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In other environments, finding out how much program space is left is obvious. &amp;nbsp;I am sure the same is the case with KDS. &amp;nbsp;Please enlighten me. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 16:42:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703185#M43189</guid>
      <dc:creator>barrypurtymun</dc:creator>
      <dc:date>2017-09-14T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find out the size of my program and how much program space if left on a K60?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703186#M43190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Barry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look in the console output - it should show you the details. Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;Invoking: Cross ARM GNU Create Flash Image&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;arm-none-eabi-objcopy -O ihex "uTaskerV1.4_BM.elf"&amp;nbsp; "uTaskerV1.4_BM.hex"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;Finished building: uTaskerV1.4_BM.hex&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;Invoking: Cross ARM GNU Create Listing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;arm-none-eabi-objdump --source --all-headers --demangle --line-numbers --wide "uTaskerV1.4_BM.elf" &amp;gt; "uTaskerV1.4_BM.lst"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;Finished building: uTaskerV1.4_BM.lst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;Invoking: Cross ARM GNU Print Size&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;arm-none-eabi-size --format=berkeley "uTaskerV1.4_BM.elf"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hex&amp;nbsp;&amp;nbsp; &amp;nbsp;filename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;43933&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 196&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 16552&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 60681&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ed09&amp;nbsp;&amp;nbsp; &amp;nbsp;uTaskerV1.4_BM.elf&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;Finished building: uTaskerV1.4_BM.siz&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 13px;"&gt;19:12:24 Build Finished (took 20s.755ms)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;If you generate a binary file output too you can simply look at its exact size in file explorer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:18:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703186#M43190</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-14T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find out the size of my program and how much program space if left on a K60?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703187#M43191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is where I thought it would be.  Maybe I am not looking at the right console.  Is it in there somewhere?  I can’t see it.  Also, from your example output consule below, how do I know how much program space is left?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11:51:38 **** Incremental Build of configuration Debug for project x****&lt;/P&gt;&lt;P&gt;make all&lt;/P&gt;&lt;P&gt;Building file: ../Sources/x.c&lt;/P&gt;&lt;P&gt;Invoking: Cross ARM GNU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -I"C:/nxp/workspace/x/Static_Code/PDD" -I"C:/nxp/workspace/x/Static_Code/IO_Map" -I"C:/nxp/workspace/x/Sources" -I"C:/nxp/workspace/X/Generated_Code" -std=c99 -MMD -MP -MF"Sources/X.d" -MT"Sources/X.o" -c -o "Sources/X.o" "../Sources/X.c"&lt;/P&gt;&lt;P&gt;Finished building: ../Sources/X.c&lt;/P&gt;&lt;P&gt;Building target: X.elf&lt;/P&gt;&lt;P&gt;Invoking: Cross ARM GNU C++ Linker&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -T "C:/nxp/workspace/X/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:/nxp/workspace/X/Project_Settings/Linker_Files" -Wl,-Map,"X.map" -u &lt;U&gt;printf&lt;/U&gt;float -specs=nano.specs -specs=nosys.specs -o "X.elf"  ./Sources/Events.o ./Sources/FT800.o ./Sources/X.o ./Sources/main.o  ./Project_Settings/Startup_Code/startup.o  ./Generated_Code/AD_BUSY.o ./Generated_Code/ASerialLdd1.o ./Generated_Code/ATODRESET.o ./Generated_Code/BitIoLdd1.o ./Generated_Code/BitIoLdd10.o ./Generated_Code/BitIoLdd11.o ./Generated_Code/BitIoLdd12.o ./Generated_Code/BitIoLdd13.o ./Generated_Code/BitIoLdd2.o ./Generated_Code/BitIoLdd3.o ./Generated_Code/BitIoLdd4.o ./Generated_Code/BitIoLdd5.o ./Generated_Code/BitIoLdd6.o ./Generated_Code/BitIoLdd7.o ./Generated_Code/BitIoLdd8.o ./Generated_Code/BitIoLdd9.o ./Generated_Code/C11.o ./Generated_Code/C21.o ./Generated_Code/CAL1.o ./Generated_Code/CS.o ./Generated_Code/CS_ADC.o ./Generated_Code/CS_EEROM.o ./Generated_Code/CS_POT.o ./Generated_Code/Cpu.o ./Generated_Code/Inhr1.o ./Generated_Code/MCUC1.o ./Generated_Code/OS0.o ./Generated_Code/OS1.o ./Generated_Code/OS2.o ./Generated_Code/PD.o ./Generated_Code/PE_LDD.o ./Generated_Code/Q4C1.o ./Generated_Code/SM1.o ./Generated_Code/SM2.o ./Generated_Code/SMasterLdd1.o ./Generated_Code/SMasterLdd2.o ./Generated_Code/TI1.o ./Generated_Code/TI2.o ./Generated_Code/TI3.o ./Generated_Code/TU1.o ./Generated_Code/TU2.o ./Generated_Code/TU3.o ./Generated_Code/Term1.o ./Generated_Code/TimerIntLdd1.o ./Generated_Code/TimerIntLdd2.o ./Generated_Code/TimerIntLdd3.o ./Generated_Code/Vectors.o ./Generated_Code/WAIT1.o&lt;/P&gt;&lt;P&gt;Finished building target: X.elf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11:51:39 Build Finished (took 1s.342ms)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barry Purtymun&lt;/P&gt;&lt;P&gt;Link Engineering Company&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;623-505-9245 Direct&lt;/P&gt;&lt;P&gt;480-862-5015 Mobile&lt;/P&gt;&lt;P&gt;623-505-9250 Main&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.linkeng.com&amp;lt;http://www.linkeng.com/&amp;gt;" target="test_blank"&gt;http://www.linkeng.com&amp;lt;http://www.linkeng.com/&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703187#M43191</guid>
      <dc:creator>barrypurtymun</dc:creator>
      <dc:date>2017-09-14T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find out the size of my program and how much program space if left on a K60?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703188#M43192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Barry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your build is not generating a binary/HEX file - you can check a box somewhere in the settings to get it to use objcpy() to do this and it possibly does the size command too.&lt;/P&gt;&lt;P&gt;In case of problems just call a bat file with command to do whatever is missing; it is more flexible that what KDS offers (the GCC binary folder contains all of the standard utilities to do such things).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The remaining size in Flash is (FLASH_SIZE - code size), assuming you have no areas reserved in Flash for parameter storage or file systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 21:46:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703188#M43192</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-14T21:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find out the size of my program and how much program space if left on a K60?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703189#M43193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I found an option called print size.  Here is what I get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoking: Cross ARM GNU Print Size&lt;/P&gt;&lt;P&gt;arm-none-eabi-size --format=berkeley "x.elf"&lt;/P&gt;&lt;P&gt;   text        data        bss         dec         hex    filename&lt;/P&gt;&lt;P&gt;  49892      204        3364      53460     d0d4   x.elf&lt;/P&gt;&lt;P&gt;Finished building: x.siz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the .elf file in windows and it’s property shows 1.07 MB.  The my controller is the Kinetis® K60: 150MHz Cortex-M4F up to 1MB Flash (144pin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barry Purtymun&lt;/P&gt;&lt;P&gt;Link Engineering Company&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;623-505-9245 Direct&lt;/P&gt;&lt;P&gt;480-862-5015 Mobile&lt;/P&gt;&lt;P&gt;623-505-9250 Main&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.linkeng.com&amp;lt;http://www.linkeng.com/&amp;gt;" target="test_blank"&gt;http://www.linkeng.com&amp;lt;http://www.linkeng.com/&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 22:25:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703189#M43193</guid>
      <dc:creator>barrypurtymun</dc:creator>
      <dc:date>2017-09-14T22:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find out the size of my program and how much program space if left on a K60?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703190#M43194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Barry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ELF file contains lots of data (eg. symbol information of debugging) and so has nothing to do with the size of the binary that is loaded (eve small code of a few kBytes may have an ELF of 1 Mega Byte in size).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configure to generate a .bin output and then you have the the exact size accurate to a byte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 22:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703190#M43194</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-14T22:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find out the size of my program and how much program space if left on a K60?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703191#M43195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi barry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please check the following post.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/" title="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/"&gt;text, data and bss: Code and Data Size Explained | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 23:45:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-find-out-the-size-of-my-program-and-how-much-program/m-p/703191#M43195</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-09-15T23:45:43Z</dc:date>
    </item>
  </channel>
</rss>

