<?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: Fixup overflow error in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153141#M4475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Just out of curiosity, is NON_BANKED distributed into multiple segments by default, or did you change this setup? In V4.7, NON_BANKED is placed into ROM_C000 only.&lt;BR /&gt;&lt;BR /&gt;Well either way, when distributing the content of a single section with __near functions (as the ones in rtshc12.c) into multiple placements, then linking may fail with the fixup overflow message you got if the code was not built with -OnB=b, as described in the V4.7 prm.&lt;BR /&gt;So you can&lt;BR /&gt;- Place the content of some SHORT sections into ROM_4000, the content of others into ROM_C000.&lt;BR /&gt;&amp;nbsp; The content of non code sections containing strings or constants can be distributed into multiple placements.&lt;BR /&gt;&amp;nbsp;I do recommend this setup. In the prm it should look like the untested snippet below:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;.....
      _PRESTART, STARTUP, NON_BANKED INTO ROM_4000;
      ROM_VAR, STRINGS, COPY INTO ROM_C000, ROM_4000;
.....&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;- Or rebuild the code (and for rtshc12.c, the ANSI library) with -OnB=b.&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;Very probably just placing the content of NON_BANKED into either ROM_4000 or ROM_C000 (but not both...) in the prm file does resolve the issue for you.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 08:56:37 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2020-10-29T08:56:37Z</dc:date>
    <item>
      <title>Fixup overflow error - mc9s12xeq512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153138#M4472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We just upgraded from mc9s12xeq512 to mc9s12xep768. My code was working with mc9s12xeq512 but when I tried to compile it using the mc9s12xep768.prm file, I got this error:&lt;BR /&gt;&lt;BR /&gt;ERROR L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0xB&lt;BR /&gt;ERROR L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0x13&lt;BR /&gt;ERROR L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0x19&lt;BR /&gt;ERROR L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0x20&lt;BR /&gt;&lt;BR /&gt;Whats the cause and how can I fix this?&lt;BR /&gt;&lt;BR /&gt;Thanks...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added p/n to subject.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2009-02-16&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;07:35 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 10:54:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153138#M4472</guid>
      <dc:creator>MusikA</dc:creator>
      <dc:date>2009-02-16T10:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153139#M4473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Did you change anything in the new prm file, like changing the line below:&lt;BR /&gt;&amp;gt; INTO&amp;nbsp; ROM_C000/*, ROM_4000*/;&lt;BR /&gt;?&lt;BR /&gt;The error message sounds as if the code out of rtshc12.c is split up into multiple sections which could happen if you uncomment the ROM_4000 above. The default prm does not contain this setup, so I wonder if it was added.&lt;BR /&gt;Also which version do you use? The latest 4.7?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 14:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153139#M4473</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2009-02-16T14:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153140#M4474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Daniel,&lt;BR /&gt;&lt;BR /&gt;ROM_4000 is not disabled and we are using 4.6 version.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 13:49:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153140#M4474</guid>
      <dc:creator>MusikA</dc:creator>
      <dc:date>2009-02-17T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153141#M4475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Just out of curiosity, is NON_BANKED distributed into multiple segments by default, or did you change this setup? In V4.7, NON_BANKED is placed into ROM_C000 only.&lt;BR /&gt;&lt;BR /&gt;Well either way, when distributing the content of a single section with __near functions (as the ones in rtshc12.c) into multiple placements, then linking may fail with the fixup overflow message you got if the code was not built with -OnB=b, as described in the V4.7 prm.&lt;BR /&gt;So you can&lt;BR /&gt;- Place the content of some SHORT sections into ROM_4000, the content of others into ROM_C000.&lt;BR /&gt;&amp;nbsp; The content of non code sections containing strings or constants can be distributed into multiple placements.&lt;BR /&gt;&amp;nbsp;I do recommend this setup. In the prm it should look like the untested snippet below:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;.....
      _PRESTART, STARTUP, NON_BANKED INTO ROM_4000;
      ROM_VAR, STRINGS, COPY INTO ROM_C000, ROM_4000;
.....&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;- Or rebuild the code (and for rtshc12.c, the ANSI library) with -OnB=b.&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;Very probably just placing the content of NON_BANKED into either ROM_4000 or ROM_C000 (but not both...) in the prm file does resolve the issue for you.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Fixup-overflow-error-mc9s12xeq512/m-p/153141#M4475</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2020-10-29T08:56:37Z</dc:date>
    </item>
  </channel>
</rss>

