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.
Message
Re: [lpc2000] Re: GNU inline assembler return value
2005-07-12 by Charles Manning