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