Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: GNU inline assembler return value

2005-07-12 by Charles Manning

On Tuesday 12 July 2005 23:32, xjag74 wrote:
> Now I realized that the interrupts use another stack (IRQ stack) than
> a normal routine (User stack).
>
> Is it possible to read the User stack pointer within the ISR?
>
> What I try to do is to capture the SP every timer1 ISR entry (200us)
> and to store the maximum value to figure out if the stack collides
> with the data area.
>
> The stack check option of the GNU compiler is not working.
>
> Regards
> xjag

I think a better way to do this is to fill the stack area with a pattern and 
see how much of the area is changed once the program has run for a bit.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.