[En-Nut-Discussion] Need help: interrupt resets device.

Ernst Stippl ernst at stippl.org
Thu Apr 5 23:32:51 CEST 2007


Hi Dmitry!

a) Have to tried to connect the INT3 pin to ground solidly to make sure it
can't float and cause spurious interrupts? 
b) have you tried to use another external interrupt instead of int 3 (just
to be sure ....)

regards
Ernst

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Dmitry
Beklemishev
Gesendet: Mittwoch, 04. April 2007 10:36
An: 'Ethernut User Chat (English)'
Betreff: Re: [En-Nut-Discussion] Need help: interrupt resets device.

Harald, thank you for your reply. I tried to completely disable watchdog and
all threads, but it does not help. By the way, behavior of the program can
vary -- sometimes it can just lost the network instead of restarting,
sometimes the interrupt begins to occur very frequently without any external
event that causes it... I tried not to use Nut/OS interrupts API (using
SIGNAL(SIG_INTERRUPT3)), but the result was almost the same.
Thank you for support,
Dmitry.
-------------------------


Dmitry,

I don't think that the interrupt is the problem. Disable your watchdog in
order to see, if that causes the reset. If you created additional threads,
increase their stack space.

Harald

Dmitry Beklemishev schrieb:
> Good day!
>
> I have Ethernut 2.1 board and Nut/OS v.4.2.1.
>
> The problem is that INTERRUPT3 resets device when occurs. The code is
below.
>
>  
>
> static void irqhandler(void *arg)
>
> {
>
> // Reset occurs even with empty handler
>
> }
>
>  
>   

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.25/745 - Release Date: 03.04.2007
12:48





More information about the En-Nut-Discussion mailing list