EmbDev.net

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


Author: pragnesh (Guest)
Posted on:

Rate this post
0 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.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.