|
Hi Thanks for your kindly suggestion. The problem has been resolved. I have modified the ISR as your suggestion, besides, the major problem is in the SAM9XE.s generated by Keil. In that file, the code bellow is used for IRQ vector, which points to AIC_IVR for the entry point of ISR. LDR PC, [PC,#-0xF20] But I didn't write the code for handling the pointer stacks in the ISR. Therefore, after ISR has been excuted, the PC jumps to an address with invalid instruction. I modified the code as, LDR PC, IRQ_Addr and also added a irqHandler in that .s file for handling the pointer stack. Then the problem has gone.
John
|