<?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 CW6.3 L1907 fixup problem in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165042#M2964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I recompile CW specialedition 5 code with 6.3 (last week downloaded) and get L1907 fixup problems&lt;/P&gt;&lt;P&gt;usually it's something with crossreference and xdef etc. but now I don't understand it.&lt;/P&gt;&lt;P&gt;I an asm-file I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; xdef&amp;nbsp;&amp;nbsp;&amp;nbsp; parBatt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; org&amp;nbsp;&amp;nbsp; &amp;nbsp; $8400&lt;BR /&gt;parBatt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dcl&amp;nbsp;&amp;nbsp; &amp;nbsp; 32768&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in a c-file I call it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; l = Ucalc(Vbuf, parBatt);&lt;/P&gt;&lt;P&gt;What's causing the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appriciated&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Herman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2010 21:05:38 GMT</pubDate>
    <dc:creator>Herman</dc:creator>
    <dc:date>2010-01-04T21:05:38Z</dc:date>
    <item>
      <title>CW6.3 L1907 fixup problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165042#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I recompile CW specialedition 5 code with 6.3 (last week downloaded) and get L1907 fixup problems&lt;/P&gt;&lt;P&gt;usually it's something with crossreference and xdef etc. but now I don't understand it.&lt;/P&gt;&lt;P&gt;I an asm-file I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; xdef&amp;nbsp;&amp;nbsp;&amp;nbsp; parBatt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; org&amp;nbsp;&amp;nbsp; &amp;nbsp; $8400&lt;BR /&gt;parBatt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dcl&amp;nbsp;&amp;nbsp; &amp;nbsp; 32768&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in a c-file I call it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; l = Ucalc(Vbuf, parBatt);&lt;/P&gt;&lt;P&gt;What's causing the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appriciated&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Herman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 21:05:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165042#M2964</guid>
      <dc:creator>Herman</dc:creator>
      <dc:date>2010-01-04T21:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: CW6.3 L1907 fixup problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165043#M2965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is the prototype for Ucalc looking like?&lt;/P&gt;&lt;P&gt;How does the external declaration for parBatt look like in your C source file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 00:19:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165043#M2965</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-01-05T00:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: CW6.3 L1907 fixup problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165044#M2966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ucalc is at the beginning of the file and is not in the .h file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;long Ucalc(unsigned int ivalue, long lPar)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;In the (included) .h file it's defined as.&lt;/P&gt;&lt;P&gt;extern long parBatt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Herman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 15:28:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165044#M2966</guid>
      <dc:creator>Herman</dc:creator>
      <dc:date>2010-01-05T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: CW6.3 L1907 fixup problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165045#M2967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The L1907, Fixup overflow is issued when the referred object cannot be reached with the used addressing mode, for example when accessing a far function with the near calling convention or an extended allocated variable with direct addressing mode.&lt;/P&gt;&lt;P&gt;For example if the parBatt variable would be accessed in the tiny memory model I would expect a&amp;nbsp;&lt;/P&gt;&lt;P&gt;L1907&amp;nbsp; when accessing it as it is not allocated in the direct segment, the default in the tiny model.&lt;/P&gt;&lt;P&gt;The declaration would have to be in a __FAR_SEG qualified pragma.&lt;/P&gt;&lt;P&gt;What exactly is the problem in this particular case? I don't know, really not enough information.&lt;/P&gt;&lt;P&gt;Check in the map file how the objects are allocated and check the code how the compiler is accessing the variable.&lt;/P&gt;&lt;P&gt;Things which could provide more insight:&lt;/P&gt;&lt;P&gt;- Map file entries about the mentioned objects&lt;/P&gt;&lt;P&gt;- The actual error text (Tip: Ctrl-C works in the message window!)&lt;/P&gt;&lt;P&gt;- memory model used&lt;/P&gt;&lt;P&gt;- #pragma's and other special topics&lt;/P&gt;&lt;P&gt;- disassembly of the code for which the error is issued.&lt;/P&gt;&lt;P&gt;- which derivative, banking?&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>Tue, 05 Jan 2010 15:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165045#M2967</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-01-05T15:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: CW6.3 L1907 fixup problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165046#M2968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played around a little with the pragma's and had to add 3 of them to get it compiled.&lt;/P&gt;&lt;P&gt;It's still strange because a few have pragma's and some don't have allthough it looks the same?&lt;/P&gt;&lt;P&gt;Now I'm testing the lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found out that the memory model has changed from small to tiny?&lt;/P&gt;&lt;P&gt;I have to look into this, because I took the 'last-release' files without any changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Herman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 16:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW6-3-L1907-fixup-problem/m-p/165046#M2968</guid>
      <dc:creator>Herman</dc:creator>
      <dc:date>2010-01-06T16:06:11Z</dc:date>
    </item>
  </channel>
</rss>

