问题
开发bootloader中,在跳转到应用程序时,重设中断向量表
static __asm void asmJump(unsigned int addr){
/* goto applicant */
LDR SP,[R0]
ADD R0,#0x4
LDR R1,[R0]
BX R1
}
static void stm32l431GotoApplicant(unsigned int addr){
/* set vector register */
SCB->VTOR = addr;
asmJump(addr);
}
跳到应用程序之后,无法进入任何中断
如果把重设中断向量表的语句放在应用程序中来做
int main(void){