/* TCP sender buffer space (bytes). */
#define TCP_SND_BUF (4*TCP_MSS)
/* TCP sender buffer space (pbufs). This must be at least = 2 *
TCP_SND_BUF/TCP_MSS for things to work. */
#define TCP_SND_QUEUELEN (6* TCP_SND_BUF)/TCP_MSS
回复【6楼】雨山:
---------------------------------
数据量大的话,把#define __LWIPOPTS_H__里的参数往大里调调,但是操作不当,容易出现问题。比如
#define MEM_SIZE (200*1024)
/* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application
sends a lot of data out of ROM (or other static memory), this
should be set high. */
#define MEMP_NUM_PBUF 100
/* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
per active UDP "connection". */
#define MEMP_NUM_UDP_PCB 5
/* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP
connections. */
#define MEMP_NUM_TCP_PCB 30
/* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP
connections. */
#define MEMP_NUM_TCP_PCB_LISTEN 30
/* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP
segments. */
#define MEMP_NUM_TCP_SEG 200
/* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active
timeouts. */
#define MEMP_NUM_SYS_TIMEOUT 3
/* ---------- Pbuf options ---------- */
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
#define PBUF_POOL_SIZE 200
回复【7楼】象牙塔:
---------------------------------
开大了不行
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching os_cpu_c.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching lanmanager.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching wdg.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching sample_http.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching mobl_op.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching mobl_op.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching mobl_op.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6406E: No space in execution regions with .ANY selector matching etharp.o(.data).
..\OutPut\TS1106-GTA.axf: Error: L6407E: Sections of aggregate size 0xd4c bytes could not fit into .ANY selector(s).