AnsweredAssumed Answered

Getting IRQ_Handler to work for imx53

Question asked by David Golke on Feb 11, 2016
Latest reply on Feb 15, 2016 by David Golke

Having trouble defining IRQ_Handler.  I believe I have all of the necessary setup (enabling interrupts, enable global interrupts through TZIC, set up icf file, etc) but I cannot get this function to be triggered/entered.  Any help would be appreciated.


From the startup file:


LDR     PC,Reset_Addr           ; Reset

LDR     PC,Undefined_Addr       ; Undefined instructions

LDR     PC,SWI_Addr             ; Software interrupt (SWI/SVC)

LDR     PC,Prefetch_Addr        ; Prefetch abort

LDR     PC,Abort_Addr           ; Data abort

DCD     0                       ; RESERVED

LDR     PC,IRQ_Addr             ; IRQ

LDR     PC,FIQ_Addr             ; FIQ







Reset_Addr:     DCD   __iar_program_start

Undefined_Addr: DCD   Undefined_Handler

SWI_Addr:       DCD   SWI_Handler

Prefetch_Addr:  DCD   Prefetch_Handler

Abort_Addr:     DCD   Abort_Handler

IRQ_Addr:       DCD   IRQ_Handler

FIQ_Addr:       DCD   FIQ_Handler


From linker file:

define symbol __ICFEDIT_intvec_start__ = 0xF801FFB8;

place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };


From interrupt c file:



__irq __arm void IRQ_Handler        ( void ) { Interrupt_Handler(); }