<?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: Processor Expert generate too much code as expected</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Processor-Expert-generate-too-much-code-as-expected/m-p/645433#M8395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is less to do with PE and more to do with the KSDK components which are large, this is compounded by&amp;nbsp; KSDK's usage of ‘assert()’ in the driver code which uses the PRINTF function call which is huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this &lt;A href="https://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/"&gt;https://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/&lt;/A&gt;&amp;nbsp;it refers to KSDK 2 but I guess it is also relevant for 1.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 12:02:35 GMT</pubDate>
    <dc:creator>therealfreegeek</dc:creator>
    <dc:date>2016-10-18T12:02:35Z</dc:date>
    <item>
      <title>Processor Expert generate too much code as expected</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Processor-Expert-generate-too-much-code-as-expected/m-p/645432#M8394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using KDS v3.2 with KDSK 1.3 and PE. After creating a new project for FRDM-KL03Z I've initialized some PE components as spiCom1, gpio1... as shown in the next screenshot. Then I've just added a while(1) in main.c and the compilation result ends up in almost 14KB for the .text section that means a half of the total flash memory (32KB of the MKL03Z32VFK4).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="166047_166047.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122374i760CB14AD5BF344C/image-size/large?v=v2&amp;amp;px=999" role="button" title="166047_166047.png" alt="166047_166047.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3837i28E99A6661AFF2DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me to reduce the generated/compiled code? I find it too much for a few components initialization.&lt;/P&gt;&lt;P&gt;Here I attach the whole project for better understanding.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338589"&gt;testing.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Processor-Expert-generate-too-much-code-as-expected/m-p/645432#M8394</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2016-10-18T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert generate too much code as expected</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Processor-Expert-generate-too-much-code-as-expected/m-p/645433#M8395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is less to do with PE and more to do with the KSDK components which are large, this is compounded by&amp;nbsp; KSDK's usage of ‘assert()’ in the driver code which uses the PRINTF function call which is huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this &lt;A href="https://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/"&gt;https://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/&lt;/A&gt;&amp;nbsp;it refers to KSDK 2 but I guess it is also relevant for 1.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 12:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Processor-Expert-generate-too-much-code-as-expected/m-p/645433#M8395</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-10-18T12:02:35Z</dc:date>
    </item>
  </channel>
</rss>

