Noam Weissman wrote:
I have a simple link task that checks the PHY for link, reads it. If link is up it starts the DHCP task and wait for address.

If link is down the DHCP task is put into an idle state and waits for link to come backā€¦

[..]

When board is reset, link is established and at the DHCP task this code returns with NULL ?

dhcp = (struct dhcp *)netif_get_client_data(pDHCP_TaskParams->netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);


Honestly, from how you write it, that sounds like a threading issue. You must not use that function (as many
others) from any other context than tcpip_thread!

Just to point out that this setup works for several years on several devices and never had any problems

The fact that it works on 1.4.1 (what's 1.41?) does *NOT* mean anything. The code could be wrong and just work by chance...

Maybe I haven't understood your setup correctly. In that case, please try to describe it better :-)

Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to