I have an update:
When adding 
#define MEM_LIBC_MALLOC (1)
in my lwipopts.h the retry will pass.

The problem seems to be in mem.c. I have debugged some more and have found
that the application runs as follows:

1) Creating DHCP struct (as part of dhcp_start -> mem_malloc) assign address
0x20003DB8

2) DHCP Discover message (dhcp_create_msg->pbuf_alloc -> mem_malloc) assign
address 0x20003DF4
This message will be freed afterwards

3) DHCP Discover retry (dhcp_create_msg->pbuf_alloc -> mem_malloc) assign
address 0x20003DB8

No other malloc / free calls are made between these 3 steps.

Cheers
Ricardo



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to