How can I increase LWIP memory size for webpage

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can I increase LWIP memory size for webpage

1,834件の閲覧回数
ramazan_kurban3
Contributor III

Hi. I setup a dynamic webserver app on LPC1769.  This webserver use ssi/cgi on one page that shtml.  If this webpage exceed to 5000 byte, it run unstable and freeze on 2-3 refreshes. If ı decrease webpage size under 5000 bytes , it runs perfectly and ı can refresh as i want. I increese defines on lwipopts.h but it doesnt work. How can ı increase this memory for large websize ? 

ı attached my lwipopts.h

タグ(3)
0 件の賞賛
3 返答(返信)

1,648件の閲覧回数
ramazan_kurban3
Contributor III

I increase these parameters but it didnt affect.

0 件の賞賛

1,648件の閲覧回数
soledad
NXP Employee
NXP Employee

Do you think you can tell us, how you try to access the WEB page of the server, maybe the webpage it is correct but the device has to make another task consuming the memory for the heap, and this may affect the webserver or another interrupt.

0 件の賞賛

1,648件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Ramazan:

I would suggest you check below optioins

/* TCP sender buffer space (bytes). */
#define TCP_SND_BUF             (6*TCP_MSS)


/* TCP receive window. */
#define TCP_WND                 (2*TCP_MSS)

/* MEM_SIZE: the size of the heap memory. If the application will send
a lot of data that needs to be copied, this should be set high. */
#define MEM_SIZE                (22*1024)

Regards

Daniel

0 件の賞賛