AW: [En-Nut-Discussion] NutTcpSend / NutTcpReceive
Joachim Skale
joachim.skale at tele2.at
Thu Nov 24 09:10:49 CET 2005
hi harald,
okay thats was not the best way to minimize stack use, but this couldn't be the reason for my problems, or ?
Joachim
-----Ursprungliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Harald Kipp
Gesendet: Mittwoch, 23. November 2005 17:26
An: Ethernut User Chat (English)
Betreff: Re: [En-Nut-Discussion] NutTcpSend / NutTcpReceive
Hello Joachim,
At 14:12 23.11.2005 +0100, you wrote:
> uint8 answer[256] = { 0 };
> u_char cmd[256];
This one costs 512 Bytes of stack.
> uint8 answer[256] = { 0 };
> u_char cmd[256];
Same here. Better use malloc()/free() or global variables.
Harald
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list