Check for errors on ethernet driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Check for errors on ethernet driver

ソリューションへジャンプ
508件の閲覧回数
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 解決策
492件の閲覧回数
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 返信
493件の閲覧回数
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 件の賞賛
返信