1. Reduce the size of the heap memory 2. Change the TCP segment size 3. Disable UDP + DHCP + DNS 4. Change the configuration of the TCP/IP thread

Dependents:   EthernetInterface

Fork of lwip by mbed official

Revision:
10:42a34d63b218
Parent:
6:00bf89892c76
--- a/core/memp.c	Fri Mar 01 15:35:46 2013 +0000
+++ b/core/memp.c	Thu May 30 17:11:58 2013 +0100
@@ -166,11 +166,17 @@
 
 #else /* MEMP_SEPARATE_POOLS */
 
+#if defined(TARGET_LPC1768)
+#  define ETHMEM_SECTION __attribute((section("AHBSRAM1")))
+#elif defined(TARGET_LPC4088)
+#  define ETHMEM_SECTION 
+#endif
+
 /** This is the actual memory used by the pools (all pools in one big block). */
 static u8_t memp_memory[MEM_ALIGNMENT - 1 
 #define LWIP_MEMPOOL(name,num,size,desc) + ( (num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size) ) )
 #include "lwip/memp_std.h"
-] __attribute((section("AHBSRAM1")));
+] ETHMEM_SECTION;
 
 #endif /* MEMP_SEPARATE_POOLS */