Content originally posted in LPCWare by jubiamathew on Sun Aug 02 23:04:47 MST 2015
Thank You for the response. We were not able to find an example which uses interrupts. Only the ResetHandler is present in the examples.
We are using the similar code with Keil and is able to invoke the ISR properly. We are sure that the processor specific interrupt registers are set properly. In Keil project, before calling main function from ResetHandler the mode is changed to system mode by instruction 'MSR CPSR_c, #Mode_SYS'.
If we try to do the same in LPC Expresso the control goes to some addresses like 0x00000008,0x00000004,0x00000018 etc.
In Keil project we have IMPORT InterruptHandler in the startup file and the ISR that is defined in main.c is defined as void CIrqHandler(void) __irq . LPCExpresso is giving build error if we have __irq with C function and IMPORT in .s file.