<?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 Change from Relocatable to Absolute? in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184723#M4409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have started a project in relocatable code using the HCS08AC60 and CW6.1 and processor expert.&amp;nbsp; How is it possible to change the project from relocatable to absolute code so that I can use ORG statements to set the location of the code where I want it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case of my MCUinit.asm file, I wish it could just assemble and link&amp;nbsp;'in line' with the rest of the code by using&amp;nbsp;'INCLUDE MCUinit.asm'.&amp;nbsp;&amp;nbsp;But&amp;nbsp;I cant get that to work.&amp;nbsp; It seems that CW wants to start it at $1860 and keep that module relocatable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 00:30:51 GMT</pubDate>
    <dc:creator>TomHoag</dc:creator>
    <dc:date>2009-05-27T00:30:51Z</dc:date>
    <item>
      <title>Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184723#M4409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have started a project in relocatable code using the HCS08AC60 and CW6.1 and processor expert.&amp;nbsp; How is it possible to change the project from relocatable to absolute code so that I can use ORG statements to set the location of the code where I want it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case of my MCUinit.asm file, I wish it could just assemble and link&amp;nbsp;'in line' with the rest of the code by using&amp;nbsp;'INCLUDE MCUinit.asm'.&amp;nbsp;&amp;nbsp;But&amp;nbsp;I cant get that to work.&amp;nbsp; It seems that CW wants to start it at $1860 and keep that module relocatable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 00:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184723#M4409</guid>
      <dc:creator>TomHoag</dc:creator>
      <dc:date>2009-05-27T00:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184724#M4410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tom, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A requirement for CW absolute assembly is that only a single file may have the .ASM extension.&amp;nbsp; Your include files must use another extension, so simply rename these files.&amp;nbsp; You may also need to incorporate the ABSENTRY directive within your code, for debugging purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 11:23:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184724#M4410</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2009-05-27T11:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184725#M4411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mac, thank you for the advice.&amp;nbsp; I can certainly make those changes and see what happens.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it seems that does not explain why the MCUinit.asm file generated by Device Initialization, ends up in a relocatable format with supporting file MCUinit.inc.&amp;nbsp; It would seem that there must be an option somewhere that will allow Device Initialization to generate an absolute file.&amp;nbsp; Or, maybe it can only be done by hand-editing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 23:41:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184725#M4411</guid>
      <dc:creator>TomHoag</dc:creator>
      <dc:date>2009-05-27T23:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184726#M4412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess it is quite possible that Processor Expert device initialisation tool does not specifically support absolute assembly coding.&amp;nbsp; This is supplied by a third party, so they will need to provide a specific answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I suspect that you will probably need to hand edit an/or rename the file.&amp;nbsp; What does the MCUInit.inc file actually contain?&amp;nbsp; Perhaps you could incorporate the contents of MCUInit.asm within the .inc file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 00:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184726#M4412</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2009-05-28T00:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184727#M4413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Processor Expert's device initialization does support absolute assembly.&lt;/P&gt;&lt;P&gt;I'm however not sure if an existing project can be manually changed or not. Could be, I just don't know. If not the you would have to create a new project and copy the modifications in manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note that the assembler does support the assembler ORG directive in relocatable assembly mode, so I don't see the real need to switch to begin with.&lt;/P&gt;&lt;P&gt;The only thing to note is that the areas used by ORG sections must not be listed in the prm file to receive relocatable content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184727#M4413</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2009-05-28T09:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184728#M4414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out FAQ-28384 for some information on making projects with absolute assembly. To do that, you have to uncheck the C and C++ options, since those languages generate relocatable code, which can not be mixed with absolute assembly. I do not think you can undo a language choice after the wizard has generated the project. It might be easier to start over and add your source files to the absolute assembly project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by J2MEJediMaster on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-05-28&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;10:29 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 21:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184728#M4414</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2009-05-28T21:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184729#M4415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MCUinit.inc file seems to only contain a few XREF directives for the MCUinit.asm file and IRQ vectors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked for the option to switch Processor Expert from relocatable to Absolute, but I have not seen any option for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may try to build a new project for absolute assembly.&amp;nbsp; However, it seems to me that the selection for absolute assembly was greyed out, and not selectable.&amp;nbsp; I can't explain why that might be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have yet to find a good solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 21:35:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184729#M4415</guid>
      <dc:creator>TomHoag</dc:creator>
      <dc:date>2009-05-28T21:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184730#M4416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I did check out the FAQ, and that makes sense.&amp;nbsp; I thought that I had unchecked the C options, but I think I need to try to build a new project and see if I can get the Absolute assembly option.&amp;nbsp; Then hopefully I can just import my source files.&amp;nbsp; I do not know if it will be possible to import the CPU configuration from Processor Expert.&amp;nbsp; May have to rebuild it, time consuming as it was.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 21:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184730#M4416</guid>
      <dc:creator>TomHoag</dc:creator>
      <dc:date>2009-05-28T21:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Relocatable to Absolute?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184731#M4417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It took a while to figure out, but I have converted my relocatable project to absolute.&amp;nbsp; For those interested, here's how to do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Build a new project using absolute assembly.&lt;/P&gt;&lt;P&gt;Copythe project.ipe file from the old project to the new one.&amp;nbsp; This way, no need to rebuild the Device Init.&amp;nbsp; Then reload it into device Initialization and generate the MCUinit.inc file.&amp;nbsp; It will generate an absolute file.&lt;/P&gt;&lt;P&gt;Copy all other source files to the new project.&lt;/P&gt;&lt;P&gt;Add the INCLUDE "MCUinit.inc" to the Main.asm file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I can specify where I want all my code for my purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for the help...&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 06:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Change-from-Relocatable-to-Absolute/m-p/184731#M4417</guid>
      <dc:creator>TomHoag</dc:creator>
      <dc:date>2009-05-29T06:51:14Z</dc:date>
    </item>
  </channel>
</rss>

