Hi,
I am using CCSV4 with SYS/BIOS 6.30.02.42 and NDK 2.20.04.26 on the EVMC6472. I am trying to set the default IP address for a given MAC so that ARP's will not be needed to connect to the external device and communicate using UDP. The call to LLIAddStaticEntry() always returns -1, indicating an error and I'm not sure why. I call the function as follows:
UINT8 myMAC[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05};
char * myIPAddr = "195.162.1.50";
tmp = LLIAddStaticEntry(myIPAddr, myMAC);
It looks like the function call gets hung up in RtCreate() at line 543 of lli.c before returning with an error. The return value of RtCreate() indicates an error. I am calling this function within the network start function specified by the pfnStart argument to NC_NetStart(). Therefore, BIOS has already started and all the network configuration steps are complete.
Any suggestions as to why I cannot set a static ARP entry?
Nick