Dear all
I just started learning RTOS with RT 1170 DEV board, and would like to change IP address while it is running, I am able to change it from DHCP to static, but struggling to change it from static to DHCP, I believe I still need to call do it like it is starts up:
netifapi_dhcp_start(&netif);
while (ethernetif_wait_linkup(&netif, 5000) != ERR_OK)
{
PRINTF("PHY Auto-negotiation failed. Please check the cable connection and link partner setting.\r\n");
}
(void)ethernetif_wait_ipv4_valid(&netif, ETHERNETIF_WAIT_FOREVER);
But it is not running and stuck somewhere, I am new to freeRTOS. Please advise what I did wrong.
Thank you!
Ping