This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nested Interrupts

Hello everybody,
I'm using LPC2148 ARM7, programming with uVision3.

Now, I need nesting Interrupts. Following lines were used:

                AREA    NESTED_IRQ, CODE, READONLY
                ARM

                                EXPORT  nested_irq_enable
                                EXPORT  nested_irq_disable



nested_irq_enable                       ; Nested Interrupts Entry:

                                MRS             LR, SPSR
                                STMFD   SP!, {LR}
                                MSR             CPSR_c, #0x1F
                                STMFD   SP!, {LR}



nested_irq_disable                      ; Nested Interrupts Exit:

                                ldmfd   sp!, {lr}
                                msr             cpsr_c, #0x92
                                ldmfd   sp!, {lr}
                                msr             spsr_cxsf, lr


;/*****************************************************************************/

                END

Now, my Controller runs always in Prefetch Abort Handler. Does anybody know this problem?
Or does anybody see what I'm doing wrong?

Thanks for all Replys, Adrian

Parents
  • The biggest Object I use is a String FIFO which's declarated as a Global Structure... Otherwise I don't use big Variables. Where can I look how much Memory Space I use?

    PS: I found an other routine and this is running!!
    It was the Nested Interrupt handling who crashed my programme =)
    Thanks a lot for your help

    Adrian

Reply
  • The biggest Object I use is a String FIFO which's declarated as a Global Structure... Otherwise I don't use big Variables. Where can I look how much Memory Space I use?

    PS: I found an other routine and this is running!!
    It was the Nested Interrupt handling who crashed my programme =)
    Thanks a lot for your help

    Adrian

Children