<?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>LPC Microcontrollers中的主题 Re: LPC812: Code size too large</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553759#M14636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the thread for a minimal blinky:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/772566#comment-772566" title="https://community.nxp.com/message/772566#comment-772566"&gt;https://community.nxp.com/message/772566#comment-772566&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 08:54:26 GMT</pubDate>
    <dc:creator>avt</dc:creator>
    <dc:date>2016-07-27T08:54:26Z</dc:date>
    <item>
      <title>LPC812: Code size too large</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553756#M14633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, while working with the LPCXpresso 812MAX I observed that the code produced for the blinky project is 5532 bytes, too mucho for such a small project (with no optimization at all), but the Board and Chip libraries are set to -Os because no one is going to debug any of them. Is that figure normal for that project?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="153999_153999.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121837iAA5D0A31EACD7185/image-size/large?v=v2&amp;amp;px=999" role="button" title="153999_153999.png" alt="153999_153999.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Captura de pantalla de 2016-06-20 22_56_05.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60082iBDB8C351DBB5DE4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla de 2016-06-20 22_56_05.png" alt="Captura de pantalla de 2016-06-20 22_56_05.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553756#M14633</guid>
      <dc:creator>fjrg76</dc:creator>
      <dc:date>2016-06-21T04:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812: Code size too large</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553757#M14634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Regarding to the statement above, the image file is contained many object files which definitely increase its size.&lt;/P&gt;&lt;P&gt;You shall remove the corresponding head files in the chip.h, it can reduce the size by through the approach.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2016-07-27_11-25-59.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/37238i540AD11CE10B9408/image-size/large?v=v2&amp;amp;px=999" role="button" title="2016-07-27_11-25-59.jpg" alt="2016-07-27_11-25-59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Wed, 27 Jul 2016 03:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553757#M14634</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-07-27T03:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812: Code size too large</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553758#M14635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The point of the examples is not to produce the smallest possible example, but to show you how to use the chip, and the LPCOpen libs and to do it in an understandable way. The libraries include code that is not strictly needed by a blinky, but will be used in a more practical application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to find a small blinky, search these forums - I seem to remember a 'competition' a couple of years ago, that had the blinky down to a hundred bytes or so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 08:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553758#M14635</guid>
      <dc:creator>avt</dc:creator>
      <dc:date>2016-07-27T08:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812: Code size too large</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553759#M14636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the thread for a minimal blinky:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/772566#comment-772566" title="https://community.nxp.com/message/772566#comment-772566"&gt;https://community.nxp.com/message/772566#comment-772566&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 08:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553759#M14636</guid>
      <dc:creator>avt</dc:creator>
      <dc:date>2016-07-27T08:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812: Code size too large</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553760#M14637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default, most LPCOpen provided examples build against the "Redlib (Nohost)" variant of the C library - which is needed if the code is doing a printf, but is otherwise not needed. Try switching the C library being linked against to "Redlib (None)".&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389104"&gt;Switching the selected C library&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This will typically reduce flash/ram requirements noticeably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest reading:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/388954"&gt;Application Flash / RAM size&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looking at the map file should give you a good idea of what is actually being pulled into your linked image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 19:16:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553760#M14637</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-07-27T19:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812: Code size too large</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553761#M14638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Look into your *.map file and see exactly what symbols occupies .text and how big they are.&lt;/P&gt;&lt;P&gt;2. Link with NewLib (nano) and don't use float options.&lt;/P&gt;&lt;P&gt;3. Use -Os for entire project but with care (force some drivers with -O0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original drivers are buggy and linking with -Os sometimes will provide unexpected results. Also some of them are completely un-optimized for small embedded so indeed, will produce a lot of code, consuming both PGM and performances.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 06:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Code-size-too-large/m-p/553761#M14638</guid>
      <dc:creator>rianzu</dc:creator>
      <dc:date>2016-08-04T06:38:25Z</dc:date>
    </item>
  </channel>
</rss>

