Check for errors on ethernet driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Check for errors on ethernet driver

跳至解决方案
1,404 次查看
MattJCole
Contributor V

 

Is there a way to check if there are any errors on the ethernet interface?

SDK S32_SDK_S32PA_RTM_3.0.3

0 项奖励
回复
1 解答
1,388 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you can enable error interrupt in the enet component. Then when error is detected a configured callback is called with ENET_ERR_EVENT event. You can read interrupt flags using ENET_DRV_GetInterruptFlags to see what kind of errors was detected. 
Also Enet module includes statistic and error counters so it can be used to monitor for frame traffic and errors. Counters are enabled by ENET_DRV_ConfigCounters and individual counters can be read using ENET_DRV_GetCounter. Or you can check those counters in debugger.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,389 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you can enable error interrupt in the enet component. Then when error is detected a configured callback is called with ENET_ERR_EVENT event. You can read interrupt flags using ENET_DRV_GetInterruptFlags to see what kind of errors was detected. 
Also Enet module includes statistic and error counters so it can be used to monitor for frame traffic and errors. Counters are enabled by ENET_DRV_ConfigCounters and individual counters can be read using ENET_DRV_GetCounter. Or you can check those counters in debugger.

BR, Petr

0 项奖励
回复