Problem getting fiq working with AT91SAM7S256

OP #1171809
Rate this post
• ▲ 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
Guest #1171810
Rate this post
• ▲ 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

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.