We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
at first,i'm thank you for the reply. that is in the map file: Image Symbol Table ... Mem_Pool 0x40001554 Data 16384 net_config.o(.bss) udp_socket 0x40005554 Data 60 net_config.o(.bss) ...
in the netconfig,i assigned 16384 to "MEM_SIZE".is it coincident?
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.