<?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 Design Studio中的主题 Explain Code Size</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Explain-Code-Size/m-p/630003#M8111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The map file of the K02's memory configuration is&lt;/P&gt;&lt;P&gt;Memory Configuration&lt;/P&gt;&lt;P&gt;Name Origin Length Attributes&lt;BR /&gt;m_interrupts 0x00000000 0x00000400 xr&lt;BR /&gt;m_flash_config 0x00000400 0x00000010 xr&lt;BR /&gt;m_text 0x00000410 0x0001fbf0 xr&lt;BR /&gt;m_data 0x1fffe000 0x00002000 rw&lt;BR /&gt;m_data_2 0x20000000 0x00002000 rw&lt;BR /&gt;*default* 0x00000000 0xffffffff&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;m_text is showing us 130,032 bytes.&lt;/P&gt;&lt;P&gt;m_data is showing 8K&lt;/P&gt;&lt;P&gt;m_data2 is showing 8K&lt;/P&gt;&lt;P&gt;(The K02 has a total of 16K)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i compile my code i'm sitting at&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM GNU Print Size'&lt;BR /&gt;arm-none-eabi-size --format=berkeley "TrackSafe_K02.elf"&lt;BR /&gt; text data bss dec hex filename&lt;BR /&gt; 72524 348 9220 82092 140ac TrackSafe_K02.elf&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I increase one of my char array by 2Kbyte i get&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: TrackSafe_K02.elf section `.bss' will not fit in region `m_data'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: region `m_data' overflowed by 1324 bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are not close to the 16K data limit.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 23:54:04 GMT</pubDate>
    <dc:creator>anbui</dc:creator>
    <dc:date>2016-11-03T23:54:04Z</dc:date>
    <item>
      <title>Explain Code Size</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Explain-Code-Size/m-p/630003#M8111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The map file of the K02's memory configuration is&lt;/P&gt;&lt;P&gt;Memory Configuration&lt;/P&gt;&lt;P&gt;Name Origin Length Attributes&lt;BR /&gt;m_interrupts 0x00000000 0x00000400 xr&lt;BR /&gt;m_flash_config 0x00000400 0x00000010 xr&lt;BR /&gt;m_text 0x00000410 0x0001fbf0 xr&lt;BR /&gt;m_data 0x1fffe000 0x00002000 rw&lt;BR /&gt;m_data_2 0x20000000 0x00002000 rw&lt;BR /&gt;*default* 0x00000000 0xffffffff&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;m_text is showing us 130,032 bytes.&lt;/P&gt;&lt;P&gt;m_data is showing 8K&lt;/P&gt;&lt;P&gt;m_data2 is showing 8K&lt;/P&gt;&lt;P&gt;(The K02 has a total of 16K)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i compile my code i'm sitting at&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM GNU Print Size'&lt;BR /&gt;arm-none-eabi-size --format=berkeley "TrackSafe_K02.elf"&lt;BR /&gt; text data bss dec hex filename&lt;BR /&gt; 72524 348 9220 82092 140ac TrackSafe_K02.elf&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I increase one of my char array by 2Kbyte i get&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: TrackSafe_K02.elf section `.bss' will not fit in region `m_data'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: region `m_data' overflowed by 1324 bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are not close to the 16K data limit.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 23:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Explain-Code-Size/m-p/630003#M8111</guid>
      <dc:creator>anbui</dc:creator>
      <dc:date>2016-11-03T23:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Explain Code Size</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Explain-Code-Size/m-p/630004#M8112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello An,&lt;/P&gt;&lt;P&gt;1 ) From the error message "&lt;SPAN style="color: #ff0000;"&gt;TrackSafe_K02.elf section `.bss' will not fit in region `m_data'&lt;/SPAN&gt;" ,&lt;/P&gt;&lt;P&gt;and also the .bss size 9220, it overflow the size of 8k .&lt;/P&gt;&lt;P&gt;2) You can refer to the *.map file to check detail memory information. And also you can send your&lt;/P&gt;&lt;P&gt;project to me&amp;nbsp; , i can help you to check .&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/6259i1E0F32B14F2FF565/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;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 02:11:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Explain-Code-Size/m-p/630004#M8112</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-11-04T02:11:42Z</dc:date>
    </item>
  </channel>
</rss>

