This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help!The Wrong:ERR_MEM_ALLOC

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?

Parents
  • 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).

Reply
  • 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).

Children