[En-Nut-Discussion] Use of RAM
Leo Hendrawan
leo at dsp.ee.itb.ac.id
Sat Nov 20 12:18:31 CET 2004
On Fri, 19 Nov 2004, Sigurd Kleppan wrote:
> Hello!
>
> I have written HTML pages with a lot of tables and pictures.
> It is no problem to download it to the Ethernutboard, but when I run the pages in my browser the pages won't always load correctly. In the Terminal, it says "Low mem".
Hello,
i'm also developing an embedded web server using ATMEGA16 and RTL8019AS.
and i'm using the AVR uIP TCP/IP stack (by Louis Beaudoin and Adam
Dunkels).
ATMEGA16 indedd has a less memory resources (RAM and Flash mem) than
ATMEGA128 used in the ethernut board.
> I have the 1.3 dev F board and I think i have to small SRAM.
> When i run the NutHeapAvaliable, it says only ca. 10000 bytes free.
Yes, at first it doesn't work for me either when i use the variabel:
char htmlcode[] = {"........"};
(works for a very short html code, but not for a long one)
so i use this:
char htmlcode[] PROGMEM = {"........."};
(maybe it is the same with prog_char).
and read it byte per byte by using:
Buff[i] = PRG_RDB(&htmlcode[i]); // used in a necessary loop
i.e. Buff[] is the buffer allocated in the RAM.
but i use WinAVR 20040404, i don't know if it works in AVR GCC used in
ethernet application...
i hope these could help you, because i'm also a newbee in embedded
ethernet developing.... :)
> Does it help to convert variables from char to prog_char?? Are there any tricks?
>
> I see that the 2.1 board has over 500 kb in RAM? Maybe I should use this board instead?
best regards,
Leo Hendrawan
More information about the En-Nut-Discussion
mailing list