Problem of Auto Vectoring in the AT91Rm9200

Guest #1171994
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.
Guest #1171995
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

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now