<?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 Re: Linking error when building release version in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linking-error-when-building-release-version/m-p/1617032#M51931</link>
    <description>&lt;P&gt;Thanks Erich. &amp;nbsp;That worked.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 17:50:39 GMT</pubDate>
    <dc:creator>JBM</dc:creator>
    <dc:date>2023-03-16T17:50:39Z</dc:date>
    <item>
      <title>Linking error when building release version</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linking-error-when-building-release-version/m-p/1617006#M51929</link>
      <description>&lt;P&gt;I am developing an application for the LPC844M201JHI33Y (no hardware yet - did most of it with the LPC845 development kit and then created a new project for the LPC844 and copied the code over). &amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso version 11.6.1. &amp;nbsp;SDK was built and downloaded in January.&lt;/P&gt;&lt;P&gt;I have a debug version of the code that compiles and links with no errors. &amp;nbsp;I created a release configuration from the debug configuration and changed debugging information to minimal and&amp;nbsp;SDK_DEBUGCONSOLE=2 (no debug console). &amp;nbsp;This release version compiled and linked with no errors.&lt;/P&gt;&lt;P&gt;I then changed the preprocessor defined symbol "DEBUG" to "NDEBUG" and I get an error in linking:&lt;/P&gt;&lt;P&gt;"cannot move location counter backwards (from 000003ac to 000002fc)"&lt;/P&gt;&lt;P&gt;I know 0x2FC is the address of the code read protection word which I haven't changed. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I compared all the linker files (*.ld) between the DEBUG and RELEASE versions and they are the same except for the creation times in the comments.&lt;/P&gt;&lt;P&gt;I tried different library versions (NewLib, NewLibNano, RedLib) and it does the same thing with all.&lt;/P&gt;&lt;P&gt;Any idea what is going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 17:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Linking-error-when-building-release-version/m-p/1617006#M51929</guid>
      <dc:creator>JBM</dc:creator>
      <dc:date>2023-03-16T17:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linking error when building release version</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linking-error-when-building-release-version/m-p/1617024#M51930</link>
      <description>&lt;P&gt;It is because the linker tries to fit in a block into that space, and fails because of memory 'segement' size.&lt;/P&gt;&lt;P&gt;Try changing that option in the project settings for the linker:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErichStyger_0-1678988570642.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/215052iB052F1B0B5A401AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ErichStyger_0-1678988570642.png" alt="ErichStyger_0-1678988570642.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 17:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Linking-error-when-building-release-version/m-p/1617024#M51930</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-03-16T17:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Linking error when building release version</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linking-error-when-building-release-version/m-p/1617032#M51931</link>
      <description>&lt;P&gt;Thanks Erich. &amp;nbsp;That worked.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 17:50:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Linking-error-when-building-release-version/m-p/1617032#M51931</guid>
      <dc:creator>JBM</dc:creator>
      <dc:date>2023-03-16T17:50:39Z</dc:date>
    </item>
  </channel>
</rss>

