Check for errors on ethernet driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check for errors on ethernet driver

Jump to solution
1,356 Views
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 Kudos
Reply
1 Solution
1,340 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
1,341 Views
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 Kudos
Reply