<?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のトピックRe: Code Optimisation</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Code-Optimisation/m-p/603046#M7583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi syed idris&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is because of&amp;nbsp; the code size in .text is too big to fit in m_text section. Unfortunately Processor expert comes with&amp;nbsp;overhead due to the implement of code that is no used, it will increase your size code and it’ll be a little difficult to reduce&amp;nbsp;1092 bytes your size code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can try the -Os in the settings options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="BalaSNXPDoubt1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2960iF82962CE0690C242/image-size/large?v=v2&amp;amp;px=999" role="button" title="BalaSNXPDoubt1.jpg" alt="BalaSNXPDoubt1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your project? if you are no using OSA components other options are; Instead of using Peripheral Driver, use just HAL APIs. PD functions have OSA support and it's not suitable for optimum code size, but sure, this highly depends in your application, when HAL APIs are used, the OSA can be removed then to reduce size. Also you can remove utilities under platform, the debug utility can be removed to reduce size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check the post: &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/" title="https://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/"&gt;https://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information help you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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>Thu, 06 Oct 2016 20:45:24 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2016-10-06T20:45:24Z</dc:date>
    <item>
      <title>Code Optimisation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Code-Optimisation/m-p/603045#M7582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;We are using KL03 chip with KDS&amp;nbsp;3.1.0 and PE , "debug console" and "fsl-i2c" components from PE are used, In the code when I am adding some mathematical calculations of float values, the memory is getting overflowed and showing errors as&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;make: *** [test.elf] Error 1&amp;nbsp;&lt;BR /&gt;region `m_text' overflowed by 1092 bytes&amp;nbsp;&lt;BR /&gt;region m_text overflowed with text and data&amp;nbsp;&lt;BR /&gt;test.elf section `.text' will not fit in region `m_text'&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How to optimize the code so that we can get same code working ?&lt;/LI&gt;&lt;LI&gt;How to use the optimization levels as available in project properties ?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 11:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Code-Optimisation/m-p/603045#M7582</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-10-04T11:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimisation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Code-Optimisation/m-p/603046#M7583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi syed idris&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is because of&amp;nbsp; the code size in .text is too big to fit in m_text section. Unfortunately Processor expert comes with&amp;nbsp;overhead due to the implement of code that is no used, it will increase your size code and it’ll be a little difficult to reduce&amp;nbsp;1092 bytes your size code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can try the -Os in the settings options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="BalaSNXPDoubt1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2960iF82962CE0690C242/image-size/large?v=v2&amp;amp;px=999" role="button" title="BalaSNXPDoubt1.jpg" alt="BalaSNXPDoubt1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your project? if you are no using OSA components other options are; Instead of using Peripheral Driver, use just HAL APIs. PD functions have OSA support and it's not suitable for optimum code size, but sure, this highly depends in your application, when HAL APIs are used, the OSA can be removed then to reduce size. Also you can remove utilities under platform, the debug utility can be removed to reduce size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check the post: &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/" title="https://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/"&gt;https://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information help you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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>Thu, 06 Oct 2016 20:45:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Code-Optimisation/m-p/603046#M7583</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-10-06T20:45:24Z</dc:date>
    </item>
  </channel>
</rss>

