I running on a TM4C294NCPDT (rev A1) with TIRTOS 2.0.1.23. I am having trouble getting consistent Ethernet stack behavior. I get an IP sometimes and other times I get the ambiguous
Service Status: DHCPC : Enabled : Fault : 002
I do get an IP some of the time, but the rest of the time I keep having to hit reset on the launchpad and hope it grabs and IP.
I am wondering if my clock settings are just not playing along. Here are some of my CFG settings:
BIOS.heapSize = 20480;
BIOS.libType = BIOS.LibType_Custom;
Program.stack = 2048;
System.SupportProxy = SysMin;
Clock.tickPeriod = 50;
Ip.domainName = "rafaNet";
EMAC.libType = EMAC.LibType_NonInstrumented;
GPIO.libType = GPIO.LibType_NonInstrumented;
Global.IPv6 = false;
Task.idleTaskStackSize = 768;
Global.networkOpenHook = "&netOpenHook";
Global.stackLibType = Global.MIN;
Global.networkIPAddrHook = "&netIPHook";
Global.netSchedulerPri = Global.NC_PRIORITY_HIGH;
Global.lowTaskPriLevel = 3;
Global.normTaskPriLevel = 5;
Global.highTaskPriLevel = 7;
Global.kernTaskPriLevel = 9;
Global.ndkTickPeriod = 200;
I am running at 120Mhz and the Clock tick is set at 50 microseconds.
I have tried messing with the Global.ndkTickPeriod setting but I can't seem to get it right. If I am reading the NDK User's Guide correctly, this should be 2000 since my clock tick is set to 50us?
But, a 2000 Global.ndkTickPeriod NEVER gets me an IP. In fact the emac seems dead as soon as the lauchpad comes up. Is there some other piece (code or setting) that I am not setting up correctly or may be forgetting?
Thanks for the help.