AnsweredAssumed Answered

exception of mpc 5634

Question asked by 单片机 颜 on Jun 1, 2013
Latest reply on Aug 22, 2013 by Lukas Zadrapa


externuint32_t__IV_ADDR; /* Interrupt Vector Prefix value from link file */

void initIrqVectors(void)


asm ("lis r5, __IV_ADDR@h");   /* IVPR = address base used with IVOR's */
asm ("mtIVPR r5 ");
asm ("lis r5, IVOR4Handler@h"); /* IVOR4 = address of handler */
asm ("ori r5, r5, IVOR4Handler@l");
asm ("mtIVOR4 r5");


This is a IVPR and IVOR4 initialization routing .But the compiler say" _IV_ADDR "and "IVOR4Handler" are undefined.I search all datas .I don't know how to define them.