Problems with GNU ARM "interrupt" keyword

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hi, Anyone know if it is recommended to use the "interrupt" keyword
with GNU ARM ? Anyone verified it personally?. I'm getting conflicting
information via google searches in both web/groups. I'm using GNU
v3.2.1 and appear to be suffering from stack overuns/leakage in my ARM
app.

Thanks in advance, HG.

Re: Problems with GNU ARM "interrupt" keyword

Quoted text here. Click to load it

I've read it somewhere that you need to use GCC version 3.3.1 at least to
get correct interrupt routine behavior. No personal experience though...

Regards,
Andras Tantos



Re: Problems with GNU ARM "interrupt" keyword
Quoted text here. Click to load it

There are more or less ongoing problems with it; how deeply have you
debugged the problem? In particular, are you positive that the
user-supplied interrupt handling code you provide is switching and
maintaining stacks correctly according to the type of interrupt?

Re: Problems with GNU ARM "interrupt" keyword

Quoted text here. Click to load it

A common mistake is to use "nested" interrupt and forget that you have to
enter System Mode
before you allow a further interrupt.
Which ARM CPU are you using?



--
Best Regards,
Ulf Samuelsson   ulf@a-t-m-e-l.com
We've slightly trimmed the long signature. Click to see the full one.
Re: Problems with GNU ARM "interrupt" keyword
Quoted text here. Click to load it

Update: Guess I should have searched bugzilla first. In summary, the
above is a known bug and fixed in v3.3.1. See the following link for
details:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id10%834

Thanks for the help, HG

Site Timeline