[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] MEM_SIZE
From: |
Giuseppe Modugno |
Subject: |
[lwip-users] MEM_SIZE |
Date: |
Wed, 14 Mar 2018 16:42:16 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
I was experimenting with lwip memory allocator. I defined:
#define MEM_LIBC_MALLOC 0
#define MEM_USE_POOLS 0
#define MEM_SIZE (32 * 1024)
#define LWIP_RAM_HEAP_POINTER ( (void *)0x2007C000 )
I'm using LPC1768 that has a 32kB SRAM block starting from address
0x2007C000. However I have a Hard Fault error during mem_init(), because
ram_end is initialized to 0x2007C000 + (32*1024), that is over the
available memory.
So MEM_SIZE should be smaller than available heap memory.
- [lwip-users] MEM_SIZE,
Giuseppe Modugno <=