<?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 Software Development Kit中的主题 Re: Large binary size of RTCS examples</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397592#M1331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;The size of the elf file contains much symbolic debugger information and isn't a direct correlation of the actual binary image size.&lt;/P&gt;&lt;P&gt;To find that out either look at the *.map file that is generated or in the project Properties do the following:&lt;/P&gt;&lt;P&gt;C/C++ Build-&amp;gt;Settings-&amp;gt;Toolchains now check Print size.&lt;/P&gt;&lt;P&gt;Output after compile will look like:&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM GNU Print Size'&lt;/P&gt;&lt;P&gt;arm-none-eabi-size --format=berkeley "test_twrk65f180m_pe.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; 11212&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&amp;nbsp;&amp;nbsp; 2212&amp;nbsp; 13544&amp;nbsp;&amp;nbsp; 34e8 test_twrk65f180m_pe.elf&lt;/P&gt;&lt;P&gt;'Finished building: test_twrk65f180m_pe.siz'&lt;/P&gt;&lt;P&gt;' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not contain the symbolic information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 15:28:02 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2015-05-26T15:28:02Z</dc:date>
    <item>
      <title>Large binary size of RTCS examples</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397591#M1330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting started with the KSDK 1.2, trying to get some of the RTCS examples running on my FRDM-k64f board.&amp;nbsp; I built the examples with ARMGCC and the resulting elf files are really big - 1.5MB or more which seems unusually large for a simple example.&amp;nbsp; Doesn't the K64 only have 1MB of program space?&amp;nbsp; Additionally, I tried to flash one of the binaries on to the k64 board with pyOCD and it seemed to take a very long time.&amp;nbsp; Any idea what's going on here?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="plain" name="code"&gt;-rwxr-xr-x&amp;nbsp; 1 thom&amp;nbsp; staff&amp;nbsp;&amp;nbsp; 1.6M May 22 10:10 ./httpsrv/build/armgcc/httpsrv_frdmk64f/int flash debug/httpsrv.elf -rwxr-xr-x&amp;nbsp; 1 thom&amp;nbsp; staff&amp;nbsp;&amp;nbsp; 1.5M May 22 10:11 ./httpsrv/build/armgcc/httpsrv_frdmk64f/int flash release/httpsrv.elf -rwxr-xr-x&amp;nbsp; 1 thom&amp;nbsp; staff&amp;nbsp;&amp;nbsp; 2.2M May 26 08:40 ./shell/build/armgcc/shell_frdmk64f/int flash debug/shell.elf -rwxr-xr-x&amp;nbsp; 1 thom&amp;nbsp; staff&amp;nbsp;&amp;nbsp; 2.3M May 26 08:41 ./shell/build/armgcc/shell_frdmk64f/int flash release/shell.elf -rwxr-xr-x&amp;nbsp; 1 thom&amp;nbsp; staff&amp;nbsp;&amp;nbsp; 1.5M May 26 08:36 ./snmp/build/armgcc/snmp_frdmk64f/int flash debug/snmp.elf -rwxr-xr-x&amp;nbsp; 1 thom&amp;nbsp; staff&amp;nbsp;&amp;nbsp; 1.4M May 26 08:37 ./snmp/build/armgcc/snmp_frdmk64f/int flash release/snmp.elf &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:48:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397591#M1330</guid>
      <dc:creator>thom_nic</dc:creator>
      <dc:date>2015-05-26T12:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Large binary size of RTCS examples</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397592#M1331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;The size of the elf file contains much symbolic debugger information and isn't a direct correlation of the actual binary image size.&lt;/P&gt;&lt;P&gt;To find that out either look at the *.map file that is generated or in the project Properties do the following:&lt;/P&gt;&lt;P&gt;C/C++ Build-&amp;gt;Settings-&amp;gt;Toolchains now check Print size.&lt;/P&gt;&lt;P&gt;Output after compile will look like:&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM GNU Print Size'&lt;/P&gt;&lt;P&gt;arm-none-eabi-size --format=berkeley "test_twrk65f180m_pe.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; 11212&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&amp;nbsp;&amp;nbsp; 2212&amp;nbsp; 13544&amp;nbsp;&amp;nbsp; 34e8 test_twrk65f180m_pe.elf&lt;/P&gt;&lt;P&gt;'Finished building: test_twrk65f180m_pe.siz'&lt;/P&gt;&lt;P&gt;' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not contain the symbolic information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 15:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397592#M1331</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-26T15:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Large binary size of RTCS examples</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397593#M1332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David.&amp;nbsp; I was confused because the 'release' binaries are almost the same size but clearly you're right, after hitting a bug in pyOCD I was able to load the .elf via GDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a straightforward way to generate .bin files from the .elf?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt; I think I found the relevant bits in CMakeLists.txt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1432671739353171 jive_text_macro" data-renderedposition="155_0.100006103515625_972_48" jivemacro_uid="_1432671739353171" modifiedtitle="true"&gt;&lt;P&gt;# BIN AND HEX&lt;/P&gt;&lt;P&gt;ADD_CUSTOM_COMMAND(TARGET bubble_level_ftm POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex ${EXECUTABLE_OUTPUT_PATH}/bubble_level_ftm.elf ${EXECUTABLE_OUTPUT_PATH}/bubble_level_ftm.hex)&lt;/P&gt;&lt;P&gt;ADD_CUSTOM_COMMAND(TARGET bubble_level_ftm POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Obinary ${EXECUTABLE_OUTPUT_PATH}/bubble_level_ftm.elf ${EXECUTABLE_OUTPUT_PATH}/bubble_level_ftm.bin)&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 20:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397593#M1332</guid>
      <dc:creator>thom_nic</dc:creator>
      <dc:date>2015-05-26T20:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Large binary size of RTCS examples</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397594#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;If that works...great!&lt;/P&gt;&lt;P&gt;Alternative is to look at the following great blog:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/" title="http://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/"&gt;CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is sets the output to S-Record you can set it to hex or binary file generation.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 20:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Large-binary-size-of-RTCS-examples/m-p/397594#M1333</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-26T20:43:39Z</dc:date>
    </item>
  </channel>
</rss>

