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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.