hi,all: i port tcpnet on lpc2136.when i send udp data,the kernel always goto sys_error routing. the error code is ERR_MEM_ALLOC.the guide says "You need to increase the size of the memory pool in the configuration".i increase the size to 20000,it's the same wrong.and the ram is limited,so i can not keep on increase the size when the interval of udp packet is 100ms,it's normal.less then 100ms,the wrong is reached. what's the solution?
Looks like we are toaking about a different memory pool. The memory pool for malloc in the RealView compiler is defined with Heap_Size in the Startup.s file.
;// <h> Heap Configuration ;// <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF> ;// </h> Heap_Size EQU 0x00000000
Did you give an reasonable value here (i.e. 0x1000).
i do not give an reasonable value here. let me try it tomorrow. thank you very much!
i have try it.unfortunately,the wrong is stilled.