Hi,
i'm working on DK129 using the TI-RTOS, and my problem that if the board take an IP address on the startup from the DHCP server then i unplugged the ethernet cable and if the board take another IP (diffrent than the old one) and i checked the ip address using the following function, the IP isn't changing, so is there another function that i should call to get the actual IP address?
if (CfgGetImmediate(0, CFGTAG_IPNET, objstrInterfaceRequest.index, 1,\
sizeof(objstrIPNETConfiguration), (UINT8 *)&objstrIPNETConfiguration) \
== sizeof(objstrIPNETConfiguration))
{
/* Yes the device was configured and we got the IP address/Mask */
NtIPN2Str(objstrIPNETConfiguration.IPAddr, s8IPString);
UARTprintf ("IP Address : %s\n", s8IPString);
NtIPN2Str (objstrIPNETConfiguration.IPMask, s8IPString);
UARTprintf ("Net Mask : %s\n", s8IPString);
}
Environment:
***** CCS : 6.0.0.00190
***** TIRTOS : tirtos_tivac_2.01.00.03
***** SYSBIOS : 6.40.03.39
***** TIVAWARE: 2.1.0.12573c
***** NDK : 2.23.01.01
***** UIA : 2.00.01.34
Thanks,
Mohamed Fawzy