我在 LPC2136 中写了两部分代码,一部分是应用代码,还有一部分想做升级用. 现在问题是,当跳转到BOOT部分代码运行后,我把MEMMAP设置为2,并且也在0x40000000 开始处设置了中断向量,但,当打开中断后,就死机了.
请问,是什么问题?
uint32_t *pvector = 0; pvector = (uint32_t *)(0x40000000 + 0x00); *pvector = BOOT_CODE_START; // reset pvector = (uint32_t *)(0x40000000 + 0x04); *pvector = BOOT_CODE_START; // udf pvector = (uint32_t *)(0x40000000 + 0x08); *pvector = BOOT_CODE_START; // swi pvector = (uint32_t *)(0x40000000 + 0x0c); *pvector = BOOT_CODE_START; // pre fetch pvector = (uint32_t *)(0x40000000 + 0x10); *pvector = BOOT_CODE_START; // data abort pvector = (uint32_t *)(0x40000000 + 0x14); *pvector = BOOT_CODE_START; // reserved pvector = (uint32_t *)(0x40000000 + 0x18); *pvector = BOOT_CODE_START; // reserved *pvector = (uint32_t)OS_CPU_IRQ_ISR; // irq pvector = (uint32_t *)(0x40000000 + 0x1c); *pvector = BOOT_CODE_START; // reserved *pvector = (uint32_t)OS_CPU_FIQ_ISR; // fiq |