Hi ho,
I gave mem.c my 8KB USB ram for its heap. This sram stands alone in
memory space.
mem.c:mem_init() failed, because it creates a struct mem at the first
address after the heap.
In my case, that would be an address exception, in normal cases, that
would be some memory that it does not own.
I fixed it by changing
#define MEM_SIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(MEM_SIZE)
to
#define MEM_SIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(MEM_SIZE -
SIZEOF_STRUCT_MEM)
dik
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users