EmbDev.net

Forum: ARM programming with GCC/GNU tools Problem of Auto Vectoring in the AT91Rm9200


von pragnesh (Guest)


Rate this post
useful
not useful
Sir,

  I am using At91Rm9200, in which I am using two external interrupt, one
will trun on the LED connected to the PA0,and other will trun on the LED
on the Pin  PA1 in the ISR.

  In the Startup file i have written the follwing instruction at irq
vector.

      ldr pc,[pc,#-0xf20]
but it will not point to the IVR(interrupt vector reg)in AIC.

von Martin Thomas (Guest)


Rate this post
useful
not useful
pragnesh wrote:
>
> Sir,
>
>   I am using At91Rm9200, in which I am using two external interrupt, one
> will trun on the LED connected to the PA0,and other will trun on the LED
> on the Pin  PA1 in the ISR.
>
>   In the Startup file i have written the follwing instruction at irq
> vector.
>
>       ldr pc,[pc,#-0xf20]
> but it will not point to the IVR(interrupt vector reg)in AIC.

So far I have never worked with this device but the line itself should
be correct. Is the vector located at the correct postition? Any
remapping done? Does the Reset-Vector work (jump to init-code). Are
interrupts on core-level enabled? Is the AIC setup correct? Can you set
a breakpoint at this position and monitor with a debugger? You should
find example code for interrupts at at91.com/kits (They have examples
for other AT91 I expect they have examples for the AT91RM9200 too).

Martin Thomas

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.