EmbDev.net

Forum: ARM programming with GCC/GNU tools Problem getting fiq working with AT91SAM7S256


Author: Michel Boulanger (vbarre)
Posted on:

Rate this post
0 useful
not useful
I have no problems with normal interrupts (irqs) but cannot get fast
interrupt (fiq) working. I am using the assembler wrapper code found in
the "MIPS" example. Looking at the wrapper code for fiq
(FIQ_Handler_Entry), I am wondering if it is complete : is it not
supposed to save the LR_fiq in fiq stack at the begining?

Has anybody tested successfully this wrapper ?

Thanks.

Michel

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Michel Boulanger wrote:
> I have no problems with normal interrupts (irqs) but cannot get fast
> interrupt (fiq) working. I am using the assembler wrapper code found in
> the "MIPS" example. Looking at the wrapper code for fiq
> (FIQ_Handler_Entry), I am wondering if it is complete : is it not
> supposed to save the LR_fiq in fiq stack at the begining?
>
> Has anybody tested successfully this wrapper ?

I don't think the wrapper itself does cause the problem. I have not used
ARM7 FIQ so far since I did not need it in a project -> I have not
tested the wrapper. But the wrapper seems to handle the "banked" LR
correctly and the LR is also "saved" on the stack before the wrapper
calls the user-function. You may check the stack-setup startup
assembler-code. The startup-code based on examples from Atmel do not
include the "MOV SP,..." for the FIQ stack-setup. The instructions used
for the other stack initialisations can serve as templates for the FIQ
stack-setup

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.