我的ek-tm4c129xl的开发板,用的开发板自带的enet_tcpecho_server例程,动态IP时工作正常,改成静态IP时,如果接收字节少于10个字符,网口就不工作了,一定要复位才能恢复正常,不知道什么原因。
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.
我的ek-tm4c129xl的开发板,用的开发板自带的enet_tcpecho_server例程,动态IP时工作正常,改成静态IP时,如果接收字节少于10个字符,网口就不工作了,一定要复位才能恢复正常,不知道什么原因。
您是指修改下面的模式吗?
//*****************************************************************************
//
// The default IP address acquisition mode.
//
//*****************************************************************************
static uint32_t g_ui32IPMode = IPADDR_USE_STATIC;
是编译器的问题,用CCS重新编译了一下就没问题了,估计是不同的编译器用的库文件不一样。