<?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>CodeWarrior for MCUのトピックRe: Fixup overflow error in _vect...</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739766#M14399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiaxing Deng,&lt;/P&gt;&lt;P&gt;I wonder you have overlap vector table definition in your code.&lt;/P&gt;&lt;P&gt;Please upload your demo project here. I will check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2018 02:28:58 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2018-05-11T02:28:58Z</dc:date>
    <item>
      <title>Fixup overflow error in _vect...</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739765#M14398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;When I upgraded from mc9s08dz60 to mc9s08dz96, I got this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fixup overflow in _vect2, to SysTimer_Interrupt type 1, at offset 0xC&lt;BR /&gt;Fixup overflow in _vect2, to RFIRQ_Interrupt type 1, at offset 0x12&lt;BR /&gt;Fixup overflow in _vect2, to Cpu_Interrupt type 1, at offset 0xE&lt;BR /&gt;Fixup overflow in _vect2, to Cpu_Interrupt type 1, at offset 0xA&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code was working with mc9s12dz60, how can I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prm file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8272iDF470AA0A4F6C9B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Interrupt vector table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8305i038B841C4A4759BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 13:02:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739765#M14398</guid>
      <dc:creator>嘉星邓</dc:creator>
      <dc:date>2018-05-10T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error in _vect...</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739766#M14399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiaxing Deng,&lt;/P&gt;&lt;P&gt;I wonder you have overlap vector table definition in your code.&lt;/P&gt;&lt;P&gt;Please upload your demo project here. I will check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 02:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739766#M14399</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-05-11T02:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error in _vect...</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739767#M14400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check where are the ISRs placed into.&amp;nbsp;I assume they are&amp;nbsp;placed in paged/banked memory - DEFAULT_ROM.&lt;/P&gt;&lt;P&gt;I'd recommend you to add an explicit pragma to place the ISR into non-banked memory segment e.g see the snippet below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers" style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#pragma push&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;/SPAN&gt;
interrupt &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;SysTimer_Interrupt&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#pragma pop‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 22:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739767#M14400</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2018-05-11T22:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error in _vect...</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739768#M14401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie Zhang,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I'm sorry I can't upload my project, but I solved the problem through &lt;SPAN class=""&gt;@Stanislav Sliva's tips.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2018 05:32:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739768#M14401</guid>
      <dc:creator>嘉星邓</dc:creator>
      <dc:date>2018-05-12T05:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error in _vect...</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739769#M14402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG class=""&gt;&lt;SPAN class=""&gt;Stanislav&lt;/SPAN&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I according to your suggestions tried and solved the problem.&lt;/P&gt;&lt;P&gt;But I don't understand why can't the ISRs are&amp;nbsp;placed in paged/banked memory, My interrupt vector table are&amp;nbsp;placed in a fixed cpu address @0xFFC0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;P&gt;Jiaxing Deng&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2018 05:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739769#M14402</guid>
      <dc:creator>嘉星邓</dc:creator>
      <dc:date>2018-05-12T05:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fixup overflow error in _vect...</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739770#M14403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This is because of how interrupt vector table is implemented on HCS08/HCs12 architectures.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;There are just 16 bits (near) pointer dedicated to each interrupt vector - this is hardwired.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;It makes sense since for a long time HC08 cores didn't have more than 64kB of flash memory. To keep backward compatibility it is the same on devices with more 64kB of Flash.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Now on such a devices you need to take special care about where ISR routines are placed so they can be accessed by near 16bit pointer.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hope it helps.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 13:58:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Fixup-overflow-error-in-vect/m-p/739770#M14403</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2018-05-18T13:58:46Z</dc:date>
    </item>
  </channel>
</rss>

