8.3.1 Fixed Vector Table Setting

To call the initial setting routine (PowerOn_Reset_PC) at a power-on reset, set the address of PowerOn_Reset_PC to the reset vector of the fixed vector table. A coding example is shown below.

In addition to the reset vector, processing routines, such as, privileged instruction exception, access exception, undefined instruction exception, floating-point exception, and nonmaskable interrupt, can be registered to the fixed vector table.

For details on the fixed vector table, refer to the hardware manual.

Example:

extern void PowerOn_Reset_PC(void);
 
#pragma section C FIXEDVECT	    /* Outputs RESET_Vectors to the FIXEDVECT   */
                               /* section by #pragma section declaration.  */
                               /* Allocates the FIXEDVECT section to reset */
                               /* vector by the start option at linkage.   */
void (*const RESET_Vectors[])(void)={
    PowerOn_Reset_PC,
};