[En-Nut-Discussion] System Restartting

Ayman Hendawy ayman.hendawy at gmail.com
Sat Sep 22 13:51:43 CEST 2012


Dear  Bonnes,

Thanks for your reply, I put the following 3 lines at the end of each task,

printf(" Heap problem %ld \n", NutHeapCheck());
printf(" Heap free bytes %ld \n", NutHeapRootAvailable(root));
printf(" largest Block %ld \n", NutHeapRootRegionAvailable(root));

The first task print:
 Heap problem 744751104
 Heap free bytes 744751104
 largest Block 744816638

The second task print:
 Heap problem 813694976
 Heap free bytes 813694976
 largest Block 813760510


actually I can't understand the output what does it mean?

Thanks






On Fri, Sep 21, 2012 at 11:42 PM, Uwe Bonnes <
bon at elektron.ikp.physik.tu-darmstadt.de> wrote:

> >>>>> "Ayman" == Ayman Hendawy <ayman.hendawy at gmail.com> writes:
>
>     Ayman> Hi, I have ethernut board 1.3H running Ethernut 4.8.9, I created
>     Ayman> 2 tasks plus 4 HTTPD tasks, the problem is that I found the
> board
>     Ayman> restart after about 10 or 15 min.
>
> ...
>
>     Ayman> I don't know what is the problem, and how to fix this restarting
>     Ayman> issue, any suggestions....................
>
> I don't have your setup, so I cant test. But some test you could do is to
> make sure that you don't have a memory problem. Add a call to
> NutHeapAvailable() somewhere and make it available to read out, e.g. via
> the
> web. Maybe someting allocates memory and never releases it. This would
> cause
> a problem like you see it.
>
> Bye
> --
> Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de
>
> Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
> --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>



-- 
Best regards

Ayman Hendawy
Embedded system engineer

Cairo,Egypt

Phone: +20110406659


More information about the En-Nut-Discussion mailing list