<?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>topic crp in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/crp/m-p/578117#M23496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcu_programmer on Thu Sep 09 08:17:19 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have studied the crp example in lpc11xx examples. It seems that implementation wastes 0x0300 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to write a linker script to program position 0x02FC with a specific value without wasting code space?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:56:28 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:56:28Z</dc:date>
    <item>
      <title>crp</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/crp/m-p/578117#M23496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcu_programmer on Thu Sep 09 08:17:19 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have studied the crp example in lpc11xx examples. It seems that implementation wastes 0x0300 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to write a linker script to program position 0x02FC with a specific value without wasting code space?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/crp/m-p/578117#M23496</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: crp</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/crp/m-p/578118#M23497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Jesse.Rosenberg on Thu Sep 09 10:46:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the map file, or other tools like nm to determine which functions and constants will fit, and then manually place them in your linker script. The downside is that this strategy depends on manual configuration. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative is to place small library routines and/or CMSIS routines prior to the CRP section. This may not optimally fill the space between the exception vector and the CRP location, but it is better than leaving the space unfilled. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. A linker script that will include common routines might look like this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.text :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [U]FILL(0xFF);[/U]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP(*(.isr_vector))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [U]*(.text.Reset_Handler .text.SystemInit .text.SystemCoreClockUpdate)[/U]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [U]. = 0x000002FC;[/U]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [U]KEEP(*(.crp))[/U]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.text*)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.rodata*)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; MFlash32&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also find this application note useful in terms of analyzing your program image: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/documents/microcontrollers/zip/an10963.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you've probably got an idea as to how CRP works, but just in case anyone else find's this thread useful here is another recent application note: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/documents/microcontrollers/pdf/an10968.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/crp/m-p/578118#M23497</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: crp</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/crp/m-p/578119#M23498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcu_programmer on Thu Sep 09 13:47:44 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Got it to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:56:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/crp/m-p/578119#M23498</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:56:30Z</dc:date>
    </item>
  </channel>
</rss>

