After debugging and reading the documentation further I think the problem is
with me trying to set up another connection using RAW UDP.
struct udp_pcb *pcb = udp_new();
if ( pcb != NULL )
{
udp_bind( pcb, IP_ADDR_ANY, 5600 );
udp_recv( pcb, udp_receive, NULL );
}
If I have NO_SYS=0, I dont think I can do the above anymore? I have to use the
high level API since the above wouldnt be thread safe?
Thanks for the response.
________________________________
From: lwip-users <[email protected]> on
behalf of Sergio R. Caprile <[email protected]>
Sent: January 23, 2017 2:21 PM
To: [email protected]
Subject: Re: [lwip-users] Assertions when using DHCP when using LWIP 2.0
Oops...
http://www.nongnu.org/lwip/2_0_0/upgrading.html
lwIP: Upgrading<http://www.nongnu.org/lwip/2_0_0/upgrading.html>
www.nongnu.org
This file lists major changes between release versions that require ports or
applications to be changed. Use it to update a port or an application written
for an ...
* Changed netif "up" flag handling to be an administrative flag (as
opposed to the previous meaning of "ip4-address-valid", a netif will now
not be used for transmission if not up) -> even a DHCP netif has to be
set "up" before starting the DHCP client
My mistake, you seem to be doing things the right way for 2.0+
Please give details about your port and where did you get the code from.
Try to "manually exercise your code" (debug) to see why you are getting
those nulls.
Does it happen right on first call or after a while ?
Your mainloop is ... ?
You are not calling lwIP from within the mainloop and interrupts... are
you ?
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users
lwip-users -- Mailing list for lwIP users -
lists.nongnu.org<https://lists.nongnu.org/mailman/listinfo/lwip-users>
lists.nongnu.org
Welcome to the lwip-users mailing list. Use it to ask questions, share your
experience and discuss new ideas. To see the collection of prior postings to
the list ...
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users