<?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: Link Error: referenced but has not been written. Put const data into program memory. 56F8345, CW 8.3 in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Link-Error-referenced-but-has-not-been-written-Put-const-data/m-p/462675#M6970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added one more example to the text file.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 18:10:27 GMT</pubDate>
    <dc:creator>j___</dc:creator>
    <dc:date>2016-02-16T18:10:27Z</dc:date>
    <item>
      <title>Link Error: referenced but has not been written. Put const data into program memory. 56F8345, CW 8.3</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Link-Error-referenced-but-has-not-been-written-Put-const-data/m-p/462674#M6969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a couple of old posts regarding this same error. However, I was not able to figure out a solution from those old posts.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have const data that is using the most of the 8KB "data memory". I need to link a large array of constants to be located in the program space.&amp;nbsp; I am getting the error: "... referenced but has not been written. Check your linker command file"&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried 2 approaches to locating this data, 1) using the __pmem keyword, 2) using sections. They both produced the same error.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attached text file for my 2 approach examples.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A solution to this would surely be appreciated.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jim&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-338832"&gt;nxp_post_2016-02-16.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 17:47:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Link-Error-referenced-but-has-not-been-written-Put-const-data/m-p/462674#M6969</guid>
      <dc:creator>j___</dc:creator>
      <dc:date>2016-02-16T17:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error: referenced but has not been written. Put const data into program memory. 56F8345, CW 8.3</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Link-Error-referenced-but-has-not-been-written-Put-const-data/m-p/462675#M6970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added one more example to the text file.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 18:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Link-Error-referenced-but-has-not-been-written-Put-const-data/m-p/462675#M6970</guid>
      <dc:creator>j___</dc:creator>
      <dc:date>2016-02-16T18:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error: referenced but has not been written. Put const data into program memory. 56F8345, CW 8.3</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Link-Error-referenced-but-has-not-been-written-Put-const-data/m-p/462676#M6971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There were 2 .cmd files in the folder structure. Even though the project pane in CW8.3 showed that the command file in a sub-folder was assigned to the project, it found the command file in the root folder. I deleted the other command file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 23:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Link-Error-referenced-but-has-not-been-written-Put-const-data/m-p/462676#M6971</guid>
      <dc:creator>j___</dc:creator>
      <dc:date>2016-02-16T23:32:14Z</dc:date>
    </item>
  </channel>
</rss>

