Tool/software:
Hi Team TM4C,
My customer has the following question..
I am having some trouble setting up an NTP server with the TI NDK. The main thing I’m struggling on is being able to properly add a static DNS IP.
Here is a copy of the console that’s being printed:
[CORTEX_M4_0] SPI 0 initialized
Service Status: DHCPC : Enabled : : 000
Service Status: DHCPC : Enabled : Running : 000
Service Status: DHCPC : Disabled : : 000
Network Added: If-1:192.168.1.203
SPI 0 initialized
Service Status: DHCPC : Enabled : : 000
Service Status: DHCPC : Enabled : Running : 000
Service Status: DHCPC : Disabled : : 000
Network Added: If-1:192.168.1.203
LINK UP!
add_staticIP: error, couldn't add DNS entry (0)
When reading through the TI User Guide, I see that I need to add this snippet of code to my network hook:
else if (Status == CIS_SRV_STATUS_ENABLED &&
(Report == (NETTOOLS_STAT_RUNNING|DHCPCODE_IPADD) ||
Report == (NETTOOLS_STAT_RUNNING|DHCPCODE_IPRENEW)))
However, I am unable to get the proper match on the Report section. Looking through while debugging, the Report value coming in has an integer value of 256. If I’m not mistaken , the two conditions shown above should have an integer value of 273 and 275. I’m not exactly clear where the Report values come from, so I’d like some help in understanding and solving this situation.
Some setup/detail..
Which MCU are you using? Tiva TM4C129ENCPDT
WRT “When reading through the TI User Guide”.. which user guide? TI NDK Developer’s Kit Guide (Rev K.)
Using a TI LaunchPad or your own board design? Own board design
If your own board design, is the design new? No
Which version of CCS? 9.3.0
Which version of SDK?
These are the only products I am using.
Which sample project did you start with? I don’t know. I received this as a very large pre-existing project that I’m adding a feature for.
Thanks, Merril