<?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>8-bit Microcontrollers中的主题 RELOCATED INTERRUPT VECTOR TABLE</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204826#M17052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I implemented bootloader function in my S08QE8 application. I can read some information in specific documentation. Inside i can read to do relocated interrupt vector table. But i would like C program instead of asm.&lt;/DIV&gt;&lt;DIV&gt;So i am looking for some information about relovated vector in C method. Somebody have some explanations or documentation about this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2008 18:49:50 GMT</pubDate>
    <dc:creator>DavidoBG</dc:creator>
    <dc:date>2008-11-24T18:49:50Z</dc:date>
    <item>
      <title>RELOCATED INTERRUPT VECTOR TABLE</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204826#M17052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I implemented bootloader function in my S08QE8 application. I can read some information in specific documentation. Inside i can read to do relocated interrupt vector table. But i would like C program instead of asm.&lt;/DIV&gt;&lt;DIV&gt;So i am looking for some information about relovated vector in C method. Somebody have some explanations or documentation about this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 18:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204826#M17052</guid>
      <dc:creator>DavidoBG</dc:creator>
      <dc:date>2008-11-24T18:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: RELOCATED INTERRUPT VECTOR TABLE</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204827#M17053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Dear Davido,&lt;BR /&gt;&lt;BR /&gt;Attached is an example of a relocated vector table for the JM60 written in C.&amp;nbsp; This may be of use as a starting point.&lt;BR /&gt;&lt;BR /&gt;I don't know of a method that allows you to do something similar using the "standard" codewarrior interrupt style.&lt;BR /&gt;&lt;BR /&gt;PS. This method should be portable between compilers.&lt;BR /&gt;&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 09:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204827#M17053</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2008-11-25T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: RELOCATED INTERRUPT VECTOR TABLE</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204828#M17054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;That code is non-portable since it contains non-standard C. The interrupt keyword and the "@" syntax are not allowed in C. I would advise to write the vector table in pure ISO C:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;/* CW .PRM file (example for HCS12) */
...

VECTOR_RESERVED        = NO_INIT    0xFF80 TO 0xFF8B;
VECTOR_TABLE           = READ_ONLY  0xFF8C TO 0xFFFF;

...

VECTORS INTO VECTOR_TABLE;

...

ENTRIES
  vector_table
END

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;
/* vector_table.h */
...

#pragma CONST_SEG VECTORS
extern void (* const vector_table[])(void);
#pragma CONST_SEG DEFAULT

...
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;/* vector_table.c */
#include "vector_table.h"

extern void some_interrupt (void);
extern void some_other_interrupt (void);

#pragma CONST_SEG VECTORS
void (* const vector_table[])(void) =
{
  some_interrupt,
  some_other_interrupt,
  ...
};&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;/* some peripheral file for the app */

#pragma TRAP_PROC
void some_interrupt (void)
{
...
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 15:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204828#M17054</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-11-25T15:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: RELOCATED INTERRUPT VECTOR TABLE</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204829#M17055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;thanks you for all&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 21:30:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RELOCATED-INTERRUPT-VECTOR-TABLE/m-p/204829#M17055</guid>
      <dc:creator>DavidoBG</dc:creator>
      <dc:date>2008-11-25T21:30:07Z</dc:date>
    </item>
  </channel>
</rss>

