This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6657网络TCP程序NC_NetStart()函数无法返回

想做一个网络协议栈重启功能,在需要重启时调用NC_NetStop(1),相关程序代码如下。

目前已经实现了C6657网线直连电脑端的网络协议栈重启,console输出如下。

但是将C6657板子通过路由器与交换机再与电脑端相连时,NC_NetStart()执行完Network Removed后就没有输出,看起来像是emac没有正常close。

请问NC_NetStart()返回值应该是NC_NetStop(1)输入的1,为何通过了路由器和交换机,emac无法正常关闭?