Avalanche of interruptions and stack sizes

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Sep 1 09:54:12 UTC 2014


On 28/08/14 08:28, Rafael Morales wrote:
> Dear all,
>
> I'm working with Leon3 at 25Mhz, RTEMS 4.10 and a list of devices that
> generates interruptions.
>
> Nominally, there are 18 tasks running and the program is stable, but at certain
> time, one of the devices generates an avalanche of interruptions and the
> program stops suddenly.
>
> The only way to stabilize  program in is to increase the BSP stack (If I'm not
> wrong it also increases the ISR and task stack).
>
> But, why?,  Which is the effect of a avalanche of interruption in the stack size?
>
> Any idea?

This can have several reasons and it is hard to determine the error source with 
the information provided by you (e.g. what means "stops suddenly"?).  Each 
thread needs enough stack space to provide one interrupt frame.  In case you 
use nested interrupts, then the interrupt stack must be large enough for the 
deepest nesting.  In case spurious interrupts lead to interrupt nesting, then 
this is a severe problem.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the users mailing list