Tool/software: TI-RTOS
XDCtools 3.32, SYS/BIOS 6.46, CCS 7.4, PDK 4.0.7, NDK 2.25
I'm not sure how to phrase my query but I've got an ARM build roughly using the PDK NDK emac example as a starting point. It is a TCP application with three servers set to run along with a multitude of other tasks. Depending upon what level I set various task priorities to, the NC_NetStart() NetIP callback will get called once when the network is added and then immediately called again with the network removed. I am using a fixed IP. In other words, my callback for NetIP is as in the example; static void NetworkIPAddr(IPN IPAddr, uint IfIdx, uint fAdd). That function gets called twice with fAdd as true and than again with it as false.
The above happens as I raise the task priorities of some of my other tasks. I have the network stack task itself at 12, the server tasks at 7 (set from DaemonNew()). If I keep other tasks lower, say 5, everything works as expected.
Note that there is no connection begin establish during the above sequence. I am simple starting the ARM executable under CCS debug and seeing the NetIP call back getting called twice (it printf()s "Network Added" or Network Removed").
Is/are there some task priority rule(s) that I am not aware of in regard to setting the levels with NC_NetStart() or the network task? What would cause the network to be removed after being added?
Mike