<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックUsing CW for ColdFire v.6.4, target MCF5307, assembly error: &amp;quot;Illegal relocatable&amp;quot;.</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-CW-for-ColdFire-v-6-4-target-MCF5307-assembly-error-quot/m-p/139202#M2137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have this simple statement in my os_cpu_a.s file:&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;TER0&amp;nbsp;.equ&amp;nbsp;___MBAR+0x151&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It seems quite legal but&amp;nbsp;compiler throws exception bellow:&lt;/DIV&gt;&lt;DIV&gt;Error&amp;nbsp;&amp;nbsp; : Illegal relocatable expression&lt;BR /&gt;os_cpu_a.s line 161&amp;nbsp;&amp;nbsp; TER0 .equ ___MBAR+0x151&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm quite sure the answer is very simple I just can't find any info in the help files.&lt;/DIV&gt;&lt;DIV&gt;Can anyone please give me a hint what I'm I missing here?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 02:43:43 GMT</pubDate>
    <dc:creator>Veter</dc:creator>
    <dc:date>2007-07-06T02:43:43Z</dc:date>
    <item>
      <title>Using CW for ColdFire v.6.4, target MCF5307, assembly error: "Illegal relocatable".</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-CW-for-ColdFire-v-6-4-target-MCF5307-assembly-error-quot/m-p/139202#M2137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have this simple statement in my os_cpu_a.s file:&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;TER0&amp;nbsp;.equ&amp;nbsp;___MBAR+0x151&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It seems quite legal but&amp;nbsp;compiler throws exception bellow:&lt;/DIV&gt;&lt;DIV&gt;Error&amp;nbsp;&amp;nbsp; : Illegal relocatable expression&lt;BR /&gt;os_cpu_a.s line 161&amp;nbsp;&amp;nbsp; TER0 .equ ___MBAR+0x151&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm quite sure the answer is very simple I just can't find any info in the help files.&lt;/DIV&gt;&lt;DIV&gt;Can anyone please give me a hint what I'm I missing here?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 02:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-CW-for-ColdFire-v-6-4-target-MCF5307-assembly-error-quot/m-p/139202#M2137</guid>
      <dc:creator>Veter</dc:creator>
      <dc:date>2007-07-06T02:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using CW for ColdFire v.6.4, target MCF5307, assembly error: "Illegal relocatable".</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-CW-for-ColdFire-v-6-4-target-MCF5307-assembly-error-quot/m-p/139203#M2138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;The CodeWarrior assembler only supports equates which can be fully resolved at assembly time. I think that a lot of assemblers work this way.&lt;BR /&gt;&lt;BR /&gt;You can achieve the effect that you want by using a .textequ directive:&lt;BR /&gt;&lt;BR /&gt;TER0:&amp;nbsp;&amp;nbsp; &amp;nbsp; .textequ "___MBAR+0x151"&lt;BR /&gt;&lt;BR /&gt;When the assembler encounters the symbol TER0 in the source code, it will substitute the string __MBAR+0x151 (Like #define in the C preprocessor).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Simon&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 14:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-CW-for-ColdFire-v-6-4-target-MCF5307-assembly-error-quot/m-p/139203#M2138</guid>
      <dc:creator>SimonMarsden_de</dc:creator>
      <dc:date>2007-07-06T14:45:17Z</dc:date>
    </item>
  </channel>
</rss>

