Getting IRQ_Handler to work for imx53

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Getting IRQ_Handler to work for imx53

ソリューションへジャンプ
1,519件の閲覧回数
davidgolke
Contributor I

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

DATA

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(); }

ラベル(1)
0 件の賞賛
返信
1 解決策
1,230件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi David

attached is interrupt example for i.MX53 Quickstart board.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,230件の閲覧回数
davidgolke
Contributor I

Also when I have all of this set up and I halt the debugger and try to run again, I see the following error:

"Could not start CPU core. (ErrorCode: -1)

Abort debug session?"

0 件の賞賛
返信
1,231件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi David

attached is interrupt example for i.MX53 Quickstart board.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,230件の閲覧回数
davidgolke
Contributor I

I am getting the following errors on the following lines:

Error[40]: Bad instruction stack.s 3

Error[40]: Bad instruction stack.s 9

These are lines

AREA    Stacks, DATA, NOINIT

top_of_stacks    SPACE   1

0 件の賞賛
返信
1,230件の閲覧回数
davidgolke
Contributor I

I am getting the error "Error[40]: Bad instruction" from trying to use "AREA" in startup.s and stack.s.  I'm guessing this is because the project I'm working with isn't using any library files other than those in my project.

0 件の賞賛
返信